completed user admin page

This commit is contained in:
PxlLoewe
2025-03-15 11:09:55 -07:00
parent abf3475c7c
commit 37d02ea0bc
23 changed files with 567 additions and 106 deletions

View File

@@ -76,11 +76,16 @@ const SelectCom = <T extends FieldValues>({
<SelectTemplate
onChange={(newValue: any) => {
if (Array.isArray(newValue)) {
form.setValue(name, newValue.map((v: any) => v.value) as any);
form.setValue(name, newValue.map((v: any) => v.value) as any, {
shouldDirty: true,
});
} else {
form.setValue(name, newValue.value);
form.setValue(name, newValue.value, {
shouldDirty: true,
});
}
form.trigger(name);
form.Dirty;
}}
value={
(inputProps as any)?.isMulti