mirror of
https://github.com/MichaelMure/git-bug.git
synced 2024-12-15 02:01:43 +03:00
12 Setup Identity Page
This commit is contained in:
parent
134ac8aacd
commit
454f4e5962
@ -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>
|
||||
|
17
webui/src/pages/identity/Identity.tsx
Normal file
17
webui/src/pages/identity/Identity.tsx
Normal file
@ -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;
|
Loading…
Reference in New Issue
Block a user