[questions][fix] disallow unnamed lists

pull/531/head
Jeff Sieu 2 years ago
parent 964f791e46
commit d54586fbfe

@ -21,7 +21,7 @@ export default function CreateListDialog({
const {
register: formRegister,
handleSubmit,
formState: { isSubmitting },
formState: { isSubmitting, isDirty },
reset,
} = useForm<CreateListFormData>();
const register = useFormRegister(formRegister);
@ -51,6 +51,7 @@ export default function CreateListDialog({
autoComplete="off"
label="Name"
placeholder="List name"
required={true}
type="text"
/>
</div>
@ -62,6 +63,7 @@ export default function CreateListDialog({
onClick={handleDialogCancel}
/>
<Button
disabled={!isDirty}
display="inline"
isLoading={isSubmitting}
label="Create"

Loading…
Cancel
Save