Skip to content

Commit f86f3af

Browse files
committed
Add icon to topbar showing whether user is a curator or not
1 parent 8f717b8 commit f86f3af

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

apps/nar-v3/src/main.jsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ import React from "react";
2323
import ReactDOM from "react-dom/client";
2424
import { createBrowserRouter, RouterProvider } from "react-router-dom";
2525

26-
import { Avatar, CssBaseline, AppBar, Link, Toolbar, Typography, Container } from "@mui/material";
26+
import { Avatar, CssBaseline, AppBar, Link, Toolbar, Tooltip, Typography, Container } from "@mui/material";
27+
import ManageAccountsIcon from "@mui/icons-material/ManageAccounts";
2728
import { createTheme, ThemeProvider } from "@mui/material/styles";
2829
import { green } from "@mui/material/colors";
2930

@@ -106,6 +107,9 @@ export default function App(props) {
106107
EBRAINS: Neural Activity Resource (alpha)
107108
</Link>
108109
</Typography>
110+
<Tooltip title={auth.isCurator ? "Curator" : "Not a curator"}>
111+
<ManageAccountsIcon sx={{ ml: "auto", opacity: auth.isCurator ? 1 : 0.4 }} />
112+
</Tooltip>
109113
</Toolbar>
110114
</AppBar>
111115
<main>

0 commit comments

Comments
 (0)