mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-03 22:38:48 +08:00
Prettified Code!
This commit is contained in:
1 parent
4c77c4e7c0
commit
95884a7f95
11 files changed
+23
-25
No files matched your search
@@ -4,13 +4,11 @@ import Button from '@mui/material/Button';
|
||||
import { useSelector } from 'react-redux';
|
||||
import WebSocketUrlField from '../../WebSocketUrlField';
|
||||
|
||||
|
||||
interface StatusPanelProps {
|
||||
sceneTree: object
|
||||
sceneTree: object;
|
||||
}
|
||||
|
||||
export default function StatusPanel(props: StatusPanelProps) {
|
||||
|
||||
const sceneTree = props.sceneTree;
|
||||
|
||||
const isWebsocketConnected = useSelector(
|
||||
@@ -30,7 +28,7 @@ export default function StatusPanel(props: StatusPanelProps) {
|
||||
const handleChange = () => {
|
||||
setValue(!value);
|
||||
};
|
||||
const scene_button = value ? "Hide Scene" : "Show Scene";
|
||||
const scene_button = value ? 'Hide Scene' : 'Show Scene';
|
||||
sceneTree.object.visible = value;
|
||||
|
||||
return (
|
||||
|
||||
Reference in new issue
Block a user