Can disable couple photos (#5)
All checks were successful
continuous-integration/drone/push Build is passing

Add an option in family settings to disable couple photos from Web UI

Reviewed-on: #5
This commit is contained in:
2023-08-26 14:55:23 +00:00
parent 8086c1b4c9
commit 137b7422cf
13 changed files with 110 additions and 61 deletions

View File

@ -1,6 +1,7 @@
import { Stack, TextField, Typography } from "@mui/material";
import { NumberConstraint, ServerApi } from "../../api/ServerApi";
import { DateValue, fmtDate } from "../../api/MemberApi";
import { PropEdit } from "./PropEdit";
export function DateInput(p: {
id: string;
@ -13,13 +14,7 @@ export function DateInput(p: {
if (!p.value) return <></>;
return (
<Typography
variant="body2"
display="block"
style={{ marginBottom: "15px" }}
>
{p.label} : {fmtDate(p.value!)}
</Typography>
<PropEdit editable={false} label={p.label} value={fmtDate(p.value!)} />
);
}