Fix button error that causes viewer to crash (#360)

fixing button name
This commit is contained in:
Ethan Weber authored and GitHub committed 2022-09-07 10:17:39 -07:00
1 parent feafc0a314
commit 5f555474be
2 files changed
+4 -4

No files matched your search

@@ -68,23 +68,22 @@ export default function StatusPanel(props: StatusPanelProps) {
? 'Render Connected'
: 'Render Disconnected';
const websocket_connected_color = isWebsocketConnected ? 'success' : 'error';
const webrtc_connected_color = isWebrtcConnected ? 'suceess' : 'error';
const webrtc_connected_color = isWebrtcConnected ? 'success' : 'error';
sceneTree.object.visible = value;
return (
<div className="StatusPanel">
<Button // button with view in ar icon
<Button
className="StatusPanel-play-button"
variant="contained"
color="secondary"
onClick={handlePlayChange}
disabled={!isWebsocketConnected}
style={{}}
startIcon={training_icon}
>
{is_training_text}
</Button>
<Button // button with view in ar icon
<Button
className="StatusPanel-hide-scene-button"
variant="outlined"
onClick={handleChange}
@@ -91,6 +91,7 @@ export default function ViewerWindow(props) {
// this is run once
useEffect(() => {
viewportWidth = getViewportWidth();
viewportHeight = getViewportHeight();