Can disable couple photos #5
@ -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!)} />
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user