Generalize WIP

This commit is contained in:
Darren Clarke 2024-04-26 14:31:33 +02:00
parent a3e8b89128
commit cb7a3a08dc
31 changed files with 657 additions and 106 deletions

View file

@ -4,11 +4,13 @@ import { FC } from "react";
import { GridColDef } from "@mui/x-data-grid-pro";
import { useRouter } from "next/navigation";
import { List as InternalList, Button } from "ui";
import type { Selectable } from "kysely";
import { Database } from "@/app/_lib/database";
interface ListProps {
title: string;
entity: string;
rows: any;
rows: Selectable<keyof Database>[];
columns: GridColDef<any>[];
}

View file

@ -375,16 +375,18 @@ export const Sidebar: FC<SidebarProps> = ({ open, setOpen }) => {
</Box>
</Grid>
)}
<Grid item>
<Box
sx={{
...bodyLarge,
color: "white",
}}
>
{user?.name}
</Box>
</Grid>
{open && (
<Grid item>
<Box
sx={{
...bodyLarge,
color: "white",
}}
>
{user?.email}
</Box>
</Grid>
)}
</Grid>
</Grid>
</Drawer>