aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src/layout/IfLoggedIn.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'webui/src/layout/IfLoggedIn.tsx')
-rw-r--r--webui/src/layout/IfLoggedIn.tsx14
1 files changed, 0 insertions, 14 deletions
diff --git a/webui/src/layout/IfLoggedIn.tsx b/webui/src/layout/IfLoggedIn.tsx
deleted file mode 100644
index 9f4a7576..00000000
--- a/webui/src/layout/IfLoggedIn.tsx
+++ /dev/null
@@ -1,14 +0,0 @@
-import React from 'react';
-
-import { useCurrentIdentityQuery } from './CurrentIdentity.generated';
-
-type Props = { children: () => React.ReactNode };
-const IfLoggedIn = ({ children }: Props) => {
- const { loading, error, data } = useCurrentIdentityQuery();
-
- if (error || loading || !data?.repository?.userIdentity) return null;
-
- return <>{children()}</>;
-};
-
-export default IfLoggedIn;