diff --git a/frontend/src/components/layout/Workbench.tsx b/frontend/src/components/layout/Workbench.tsx index d07c6c96c..62fc48667 100644 --- a/frontend/src/components/layout/Workbench.tsx +++ b/frontend/src/components/layout/Workbench.tsx @@ -22,7 +22,7 @@ export default function Workbench() { const { isRainbowMode } = useRainbowThemeContext(); // Use context-based hooks to eliminate all prop drilling - const { state, selectors } = useFileState(); + const { selectors } = useFileState(); const { workbench: currentView } = useNavigationState(); const { actions: navActions } = useNavigationActions(); const setCurrentView = navActions.setWorkbench; diff --git a/frontend/src/components/shared/FileDropdownMenu.tsx b/frontend/src/components/shared/FileDropdownMenu.tsx index 214179593..f36b60327 100644 --- a/frontend/src/components/shared/FileDropdownMenu.tsx +++ b/frontend/src/components/shared/FileDropdownMenu.tsx @@ -25,7 +25,7 @@ export const FileDropdownMenu: React.FC = ({ return ( -
+
{switchingTo === "viewer" ? ( ) : ( diff --git a/frontend/src/components/shared/TopControls.tsx b/frontend/src/components/shared/TopControls.tsx index e035a2b27..b8b78aa57 100644 --- a/frontend/src/components/shared/TopControls.tsx +++ b/frontend/src/components/shared/TopControls.tsx @@ -9,7 +9,7 @@ import { WorkbenchType, isValidWorkbench } from '../../types/workbench'; import { FileDropdownMenu } from './FileDropdownMenu'; -const viewOptionStyle = { +const viewOptionStyle: React.CSSProperties = { display: 'inline-flex', flexDirection: 'row', alignItems: 'center', @@ -45,7 +45,7 @@ const createViewOptions = ( viewOptionStyle={viewOptionStyle} /> ) : ( -
+
{switchingTo === "viewer" ? ( ) : ( @@ -59,7 +59,7 @@ const createViewOptions = ( const pageEditorOption = { label: ( -
+
{currentView === "pageEditor" ? ( <> {switchingTo === "pageEditor" ? : } @@ -78,7 +78,7 @@ const createViewOptions = ( const fileEditorOption = { label: ( -
+
{currentView === "fileEditor" ? ( <> {switchingTo === "fileEditor" ? : }