Can set member biography

This commit is contained in:
2023-08-11 11:38:16 +02:00
parent 501f36e7ca
commit a062f27b0b
3 changed files with 29 additions and 3 deletions

View File

@ -11,6 +11,9 @@ export function PropEdit(p: {
onValueChange?: (newVal: string | undefined) => void;
size?: LenConstraint;
checkValue?: (s: string) => boolean;
multiline?: boolean;
minRows?: number;
maxRows?: number;
}): React.ReactElement {
if (((!p.editable && p.value) ?? "") === "") return <></>;
@ -31,6 +34,9 @@ export function PropEdit(p: {
}}
variant={p.editable ? "filled" : "standard"}
style={{ width: "100%", marginBottom: "15px" }}
multiline={p.multiline}
minRows={p.minRows}
maxRows={p.maxRows}
error={
(p.checkValue &&
p.value &&