feat: add progress indicator for uploading files

This commit is contained in:
Elias Schneider
2022-10-12 23:24:11 +02:00
parent 5a9eb58096
commit 8c84d50159
7 changed files with 77 additions and 49 deletions

View File

@@ -152,14 +152,12 @@ const NavBar = () => {
const { classes, cx } = useStyles();
const items = (
<>
{(user ? authenticatedLinks : unauthenticatedLinks).map((link) => {
{(user ? authenticatedLinks : unauthenticatedLinks).map((link, i) => {
if (link.component) {
return (
<>
<Box pl={5} py={15}>
{link.component}
</Box>
</>
<Box pl={5} py={15} key={i}>
{link.component}
</Box>
);
}
return (