-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Rob Ellison
committed
Nov 19, 2023
1 parent
22ab537
commit 0ac9eee
Showing
17 changed files
with
1,540 additions
and
1,222 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,3 +43,4 @@ yarn-error.log* | |
# Temp stuff | ||
components/dashboard-demo/ | ||
/.env | ||
components.old/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM node:18.14-alpine AS deps | ||
FROM node:18.18-alpine AS deps | ||
RUN apk add --no-cache libc6-compat | ||
WORKDIR /app | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,34 @@ | ||
import React from 'react' | ||
import { MenuItem } from '@mui/material'; | ||
import { MenuItem, Skeleton } from '@mui/material'; | ||
import { NavigationDrawer } from '@/components/airview-ui'; | ||
import Link from '@mui/material/Link'; | ||
|
||
|
||
export function ListMenu({ menu, open, top, drawerWidth }) { | ||
|
||
return ( | ||
<NavigationDrawer | ||
open={open} | ||
top={top} | ||
drawerWidth={drawerWidth} | ||
> | ||
{menu.map((c, i) => <Link key={i} href={c.url} sx={{ textDecoration: 'none', color: 'text.secondary' }}><MenuItem sx={{ pl: '0', color: 'text.secondary' }}> | ||
{c.label}</MenuItem></Link>)} | ||
<NavigationDrawer open={open} top={top} drawerWidth={drawerWidth}> | ||
{menu ? | ||
menu.map((c, i) => ( | ||
<Link key={i} href={c.url} sx={{ textDecoration: 'none', color: 'text.secondary' }}> | ||
<MenuItem sx={{ pl: '0', color: 'text.secondary' }}>{c.label}</MenuItem> | ||
</Link> | ||
)) | ||
: | ||
<MenuSkeleton /> | ||
} | ||
</NavigationDrawer> | ||
); | ||
}; | ||
|
||
const MenuSkeleton = () => ( | ||
<> | ||
{[...Array(10)].map((_, index) => ( | ||
<Skeleton key={index} variant="rectangular" sx={{my: '4px'}}> | ||
<Link key={index} href={null} sx={{ textDecoration: 'none', color: 'text.secondary' }}> | ||
<MenuItem sx={{ pl: '0', color: 'text.secondary' }}>labsdsdsddsdsdsdsdsdss sdsdsds sdsdsdel</MenuItem> | ||
</Link> | ||
</Skeleton> | ||
))} | ||
</> | ||
); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.