aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLena <lena.becker-3@mni.thm.de>2021-03-12 00:55:47 +0100
committerSascha <GlancingMind@outlook.com>2021-04-13 19:07:57 +0200
commit454f4e5962647115b8871ede29fc29d4da5fe289 (patch)
treec9664e4d938316b586be393bdcd25290d5778cb7
parent134ac8aacd218630722a88bd0daaf346270edbff (diff)
downloadgit-bug-454f4e5962647115b8871ede29fc29d4da5fe289.tar.gz
12 Setup Identity Page
-rw-r--r--webui/src/App.tsx2
-rw-r--r--webui/src/pages/identity/Identity.tsx17
2 files changed, 19 insertions, 0 deletions
diff --git a/webui/src/App.tsx b/webui/src/App.tsx
index 4c81913c..0b77a892 100644
--- a/webui/src/App.tsx
+++ b/webui/src/App.tsx
@@ -3,6 +3,7 @@ import { Route, Switch } from 'react-router';
import Layout from './components/Header';
import BugPage from './pages/bug';
+import IdentityPage from './pages/identity/Identity';
import ListPage from './pages/list';
import NewBugPage from './pages/new/NewBugPage';
import NotFoundPage from './pages/notfound/NotFoundPage';
@@ -14,6 +15,7 @@ export default function App() {
<Route path="/" exact component={ListPage} />
<Route path="/new" exact component={NewBugPage} />
<Route path="/bug/:id" exact component={BugPage} />
+ <Route path="/user" exact component={IdentityPage} />
<Route component={NotFoundPage} />
</Switch>
</Layout>
diff --git a/webui/src/pages/identity/Identity.tsx b/webui/src/pages/identity/Identity.tsx
new file mode 100644
index 00000000..d936068b
--- /dev/null
+++ b/webui/src/pages/identity/Identity.tsx
@@ -0,0 +1,17 @@
+import React from 'react';
+
+import { makeStyles } from '@material-ui/core/styles';
+
+import { useCurrentIdentityQuery } from '../../components/CurrentIdentity/CurrentIdentity.generated';
+
+const useStyles = makeStyles((theme) => ({}));
+
+const Identity = () => {
+ const classes = useStyles();
+ const { loading, error, data } = useCurrentIdentityQuery();
+ const user = data?.repository?.userIdentity;
+ console.log(user);
+ return <main></main>;
+};
+
+export default Identity;