Can export data from UI

This commit is contained in:
2023-08-18 15:10:16 +02:00
parent 5fa3d79b4c
commit 6c82104cdc
7 changed files with 273 additions and 88 deletions

View File

@ -141,6 +141,10 @@ export function BaseFamilyRoute(): React.ReactElement {
backgroundColor: "background.paper",
}}
>
<ListSubheader component="div">
Famille <em>{family?.name}</em>
</ListSubheader>
<FamilyLink icon={<HomeIcon />} label="Accueil" uri="" />
<FamilyLink

View File

@ -0,0 +1,15 @@
import { Alert, Card } from "@mui/material";
import { PropsWithChildren } from "react";
export function FamilyCard(
p: PropsWithChildren<{ error?: string; success?: string }>
): React.ReactElement {
return (
<Card style={{ margin: "10px auto", maxWidth: "450px" }}>
{p.error && <Alert severity="error">{p.error}</Alert>}
{p.success && <Alert severity="success">{p.success}</Alert>}
{p.children}
</Card>
);
}