Skip to content
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/deploy-storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deploy
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v4
1 change: 1 addition & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')))
);
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 1 addition & 4 deletions src/components/AppBar/AppBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<MuiAppBar
position="sticky"
Expand Down
1 change: 0 additions & 1 deletion src/components/MainNavigation/MainNavigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,6 @@ export const MainNavigation = ({ onSectionChange, onDrawerWidthChange }) => {
onUserMenuClick={handleUserMenuClick}
isUserMenuOpen={isUserMenuOpen}
/>

<UserMenu
anchorEl={userMenuAnchor}
open={isUserMenuOpen}
Expand Down
4 changes: 2 additions & 2 deletions src/components/StatusBar/StatusBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const STATUS_CONFIG = (theme) => ({
},
locked: {
label: 'Locked',
bg: theme.palette.neutral.neutral03.main,
bg: theme.palette.background.background02.main,
text: theme.palette.neutral.neutral02.main,
icon: <Lock size={16} color={theme.palette.neutral.neutral02.main} />,
},
Expand Down Expand Up @@ -121,7 +121,7 @@ const StatusBar = ({ status, size, message, tooltip }) => {
},
}}
>
<span style={{ marginLeft: size === 'small' ? 8 : 0 }}>
<span style={{ marginLeft: size === 'small' ? 8 : 0, display: 'flex', alignItems: 'center', width: 12 }}>
<CircleHelp size={12} color={theme.palette.secondary.main} />
</span>
</Tooltip>
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/TabLayout/TabLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const TabLayout = () => {
}, [currentWorkspace?.status, getScenario]);

const BreadcrumbBar = () => (
<AppBar>
<AppBar currentScenario={currentScenario}>
{currentWorkspace.data ? (
<Fragment>
<MuiLink underline="hover" color="inherit" href={`/${currentWorkspace?.data?.id}`}>
Expand Down