diff options
Diffstat (limited to 'webui/src/layout/index.tsx')
-rw-r--r-- | webui/src/layout/index.tsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/webui/src/layout/index.tsx b/webui/src/layout/index.tsx index 42a0cfc1..78ff5ae8 100644 --- a/webui/src/layout/index.tsx +++ b/webui/src/layout/index.tsx @@ -2,16 +2,18 @@ import React from 'react'; import CssBaseline from '@material-ui/core/CssBaseline'; +import { useCurrentIdentityQuery } from './CurrentIdentity.generated'; +import CurrentIdentityContext from './CurrentIdentityContext'; import Header from './Header'; type Props = { children: React.ReactNode }; function Layout({ children }: Props) { return ( - <> + <CurrentIdentityContext.Provider value={useCurrentIdentityQuery()}> <CssBaseline /> <Header /> {children} - </> + </CurrentIdentityContext.Provider> ); } |