aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src/App.js
diff options
context:
space:
mode:
authorludovicm67 <ludovicmuller1@gmail.com>2020-01-23 23:37:59 +0100
committerludovicm67 <ludovicmuller1@gmail.com>2020-01-23 23:37:59 +0100
commitdef48e53f4ae206a10d0973439efdd7769e91100 (patch)
tree16ecb40f2cdcfba6e5ba0bda8a2e1d751a04a05e /webui/src/App.js
parent8f6bc245038ce7197034877bf0fd5ddcb8d3e24d (diff)
downloadgit-bug-def48e53f4ae206a10d0973439efdd7769e91100.tar.gz
webui: display current identity in the AppBar
Diffstat (limited to 'webui/src/App.js')
-rw-r--r--webui/src/App.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/webui/src/App.js b/webui/src/App.js
index 145cd90d..35778268 100644
--- a/webui/src/App.js
+++ b/webui/src/App.js
@@ -9,6 +9,7 @@ import { Link } from 'react-router-dom';
import BugQuery from './bug/BugQuery';
import ListQuery from './list/ListQuery';
+import CurrentIdentity from './CurrentIdentity';
const theme = createMuiTheme({
palette: {
@@ -24,6 +25,8 @@ const useStyles = makeStyles(theme => ({
...theme.typography.h6,
color: 'white',
textDecoration: 'none',
+ },
+ headerLeft: {
flexGrow: 1,
},
}));
@@ -36,9 +39,12 @@ export default function App() {
<CssBaseline />
<AppBar position="fixed" color="primary">
<Toolbar>
- <Link to="/" className={classes.appTitle}>
- git-bug webui
- </Link>
+ <div className={classes.headerLeft}>
+ <Link to="/" className={classes.appTitle}>
+ git-bug webui
+ </Link>
+ </div>
+ <CurrentIdentity />
</Toolbar>
</AppBar>
<div className={classes.offset} />