diff options
author | Luke Granger-Brown <git@lukegb.com> | 2020-06-18 18:44:52 +0100 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2020-06-27 22:58:21 +0200 |
commit | cf67c78823bd1e7591c2199d51aa3f3fffed73c4 (patch) | |
tree | 4c2d07f0780a61bcde5f3e47c3ebaa2785fec64f /webui/src/layout/index.tsx | |
parent | dfdb5e090b9368d336cb7552c8c462bef243fbb0 (diff) | |
download | git-bug-cf67c78823bd1e7591c2199d51aa3f3fffed73c4.tar.gz |
Refactor webui changes.
Don't use contexts, just raw Apollo, since it's cached anyway.
Change "ReadonlyHidden" to "IfLoggedIn".
Diffstat (limited to 'webui/src/layout/index.tsx')
-rw-r--r-- | webui/src/layout/index.tsx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/webui/src/layout/index.tsx b/webui/src/layout/index.tsx index 78ff5ae8..42a0cfc1 100644 --- a/webui/src/layout/index.tsx +++ b/webui/src/layout/index.tsx @@ -2,18 +2,16 @@ 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> + </> ); } |