From cf67c78823bd1e7591c2199d51aa3f3fffed73c4 Mon Sep 17 00:00:00 2001
From: Luke Granger-Brown <git@lukegb.com>
Date: Thu, 18 Jun 2020 18:44:52 +0100
Subject: Refactor webui changes.

Don't use contexts, just raw Apollo, since it's cached anyway.

Change "ReadonlyHidden" to "IfLoggedIn".
---
 webui/src/layout/CurrentIdentityContext.tsx | 6 ------
 1 file changed, 6 deletions(-)
 delete mode 100644 webui/src/layout/CurrentIdentityContext.tsx

(limited to 'webui/src/layout/CurrentIdentityContext.tsx')

diff --git a/webui/src/layout/CurrentIdentityContext.tsx b/webui/src/layout/CurrentIdentityContext.tsx
deleted file mode 100644
index 78f2f263..00000000
--- a/webui/src/layout/CurrentIdentityContext.tsx
+++ /dev/null
@@ -1,6 +0,0 @@
-import React from 'react';
-
-import { CurrentIdentityQueryResult } from './CurrentIdentity.generated';
-
-const Context = React.createContext(null as CurrentIdentityQueryResult | null);
-export default Context;
-- 
cgit 

