Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/cele 106 #61

Merged
merged 2 commits into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -224,17 +224,29 @@ function SceneControls({ cameraControlRef, isWireframe, setIsWireframe, recorder
</Tooltip>
<Divider />
<Tooltip title="Play 3D viewer" placement="right-start">
<IconButton onClick={handleRotationToggle}>
<IconButton
onClick={handleRotationToggle}
sx={{
backgroundColor: isRotating ? "#ECF4FD" : "inherit",
"& .MuiSvgIcon-root": {
color: isRotating ? "#1568D5 !important" : "inherit",
},
}}
>
<PlayArrowOutlined />
</IconButton>
</Tooltip>
<Tooltip title={isRecording ? "Stop recording" : "Record viewer"} placement="right-start">
<IconButton onClick={handleRecordClick}>
<RadioButtonCheckedOutlined
sx={{
color: isRecording ? "red !important" : "inherit",
}}
/>
<IconButton
onClick={handleRecordClick}
sx={{
backgroundColor: isRecording ? "#ECF4FD" : "inherit",
"& .MuiSvgIcon-root": {
color: isRecording ? "#1568D5 !important" : "inherit",
},
}}
>
<RadioButtonCheckedOutlined />
</IconButton>
</Tooltip>
<Tooltip title="Download graph" placement="right-start">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export const GlobalContextProvider: React.FC<GlobalContextProviderProps> = ({ ch
};

const updateWorkspace = (workspace: Workspace) => {
setWorkspaces({ ...workspaces, [workspace.id]: workspace });
setWorkspaces((prev) => ({ ...prev, [workspace.id]: workspace }));
};

const setAllWorkspaces = (workspaces: Record<string, Workspace>) => {
Expand Down