Can disable couple photos #5

Merged
pierre merged 7 commits from disable_couple_photos into master 2023-08-26 14:55:24 +00:00
Showing only changes of commit 54ea680c5b - Show all commits

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!)} />
);
}