diff --git a/src/components/navigation/GlobalAppBar/GlobalAppBar.tsx b/src/components/navigation/GlobalAppBar/GlobalAppBar.tsx index 364534a27f3d04fb627fc193fb13e40a65271a69..806a905dd43af217215fe45306c2b7dc9a0d738a 100644 --- a/src/components/navigation/GlobalAppBar/GlobalAppBar.tsx +++ b/src/components/navigation/GlobalAppBar/GlobalAppBar.tsx @@ -15,7 +15,6 @@ export interface GlobalAppBarProps { defaultActionButton: ReactNode; defaultIconMenuButton: ReactNode; defaultHelpButton: ReactNode; - defaultTitle: string; defaultOpen: boolean; menuItems: ReactNode[]; widthOpen: string; @@ -49,7 +48,6 @@ export const GlobalAppBar = styled( defaultActionButton, defaultIconMenuButton, defaultHelpButton, - defaultTitle, defaultOpen, menuItems, widthOpen, @@ -80,8 +78,7 @@ export const GlobalAppBar = styled( defaultHomeButton, defaultActionButton, defaultIconMenuButton, - defaultHelpButton, - defaultTitle + defaultHelpButton }} /> <Toolbar className="CeuiGlobalAppBar-Spacer" /> diff --git a/src/stories/navigation/ContentPage.tsx b/src/stories/navigation/ContentPage.tsx index accf59826aa5e83de16d8e6a578d23ad2210a6f6..cfed610dd6c774a0b8c364431e0ba9504e006d6d 100644 --- a/src/stories/navigation/ContentPage.tsx +++ b/src/stories/navigation/ContentPage.tsx @@ -15,11 +15,13 @@ export const ContentPage = ({ const { updatePageTitle, setEnvironment } = useGlobalAppContext(); useEffect(() => { - updatePageTitle(title); + updatePageTitle(title || "This is an example title"); }, [title, updatePageTitle]); useEffect(() => { - setEnvironment(environment); + if (environment) { + setEnvironment(environment); + } }, [environment, setEnvironment]); return children; diff --git a/src/stories/navigation/Help/Help.stories.jsx b/src/stories/navigation/Help/Help.stories.jsx index 270bfba6ad0b369febcc317868a0e8af8b4e9000..e128f6b97e25e46e2a84e63cfc31a0ec32358259 100644 --- a/src/stories/navigation/Help/Help.stories.jsx +++ b/src/stories/navigation/Help/Help.stories.jsx @@ -32,7 +32,7 @@ const HelpContainer = (args) => { menuItems={menuItems} > <Paper sx={{ padding: 2 }}> - <ContentPage> + <ContentPage title="Help"> <Help {...args} /> </ContentPage> </Paper>