diff --git a/.github/workflows/deploy-storybook.yml b/.github/workflows/deploy-storybook.yml index 49aef80e7..e970bd7f9 100644 --- a/.github/workflows/deploy-storybook.yml +++ b/.github/workflows/deploy-storybook.yml @@ -45,4 +45,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deploy - uses: actions/deploy-pages@v4 \ No newline at end of file + uses: actions/deploy-pages@v4 diff --git a/.storybook/main.js b/.storybook/main.js index c581bcef3..fcd7c481c 100644 --- a/.storybook/main.js +++ b/.storybook/main.js @@ -21,6 +21,7 @@ const config = { staticDirs: ['../public'], webpackFinal: async (config) => { + // Remove ESLint rules Storybook injects config.module.rules = config.module.rules.filter( (rule) => !(rule.use && rule.use.some((u) => u.loader?.includes('eslint'))) ); diff --git a/package.json b/package.json index 347a6bce3..15385e46c 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ "i18next-http-backend": "^3.0.2", "jwt-decode": "^4.0.0", "lucide-react": "^0.555.0", + "process": "^0.11.10", "prop-types": "^15.8.1", "react": "^19.1.1", "react-countdown": "^2.3.6", diff --git a/src/components/AppBar/AppBar.js b/src/components/AppBar/AppBar.js index 6850c780b..93ee01548 100644 --- a/src/components/AppBar/AppBar.js +++ b/src/components/AppBar/AppBar.js @@ -5,12 +5,9 @@ import React from 'react'; import PropTypes from 'prop-types'; import { Button, AppBar as MuiAppBar, Toolbar } from '@mui/material'; import { StatusBar } from '../'; -import { useCurrentSimulationRunner } from '../../state/runner/hooks'; import { ThemeSwitch } from './components'; -export const AppBar = ({ children }) => { - const currentScenario = useCurrentSimulationRunner(); - +export const AppBar = ({ children, currentScenario }) => { return ( { onUserMenuClick={handleUserMenuClick} isUserMenuOpen={isUserMenuOpen} /> - ({ }, locked: { label: 'Locked', - bg: theme.palette.neutral.neutral03.main, + bg: theme.palette.background.background02.main, text: theme.palette.neutral.neutral02.main, icon: , }, @@ -121,7 +121,7 @@ const StatusBar = ({ status, size, message, tooltip }) => { }, }} > - + diff --git a/src/layouts/TabLayout/TabLayout.js b/src/layouts/TabLayout/TabLayout.js index eacdc81f1..693bd586a 100644 --- a/src/layouts/TabLayout/TabLayout.js +++ b/src/layouts/TabLayout/TabLayout.js @@ -46,7 +46,7 @@ export const TabLayout = () => { }, [currentWorkspace?.status, getScenario]); const BreadcrumbBar = () => ( - + {currentWorkspace.data ? (