feat: remove reset (doesnt work)
This commit is contained in:
parent
9afe159bf2
commit
d42d25be57
|
@ -122,11 +122,13 @@ export function FormSubmit({
|
||||||
hideUnsavedChangesIndicator?: boolean;
|
hideUnsavedChangesIndicator?: boolean;
|
||||||
}) {
|
}) {
|
||||||
return (
|
return (
|
||||||
<div className={cn("flex flex-row items-center gap-2", className)}>
|
<div className={cn("flex flex-row items-center gap-4", className)}>
|
||||||
<Button type="submit" isLoading={form.formState.isSubmitting}>
|
<Button type="submit" isLoading={form.formState.isSubmitting}>
|
||||||
Save
|
Save
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
|
||||||
|
{/* does not work for some reason */}
|
||||||
|
{/* <Button
|
||||||
type="reset"
|
type="reset"
|
||||||
variant="secondary"
|
variant="secondary"
|
||||||
disabled={form.formState.isSubmitting || !form.formState.isDirty}
|
disabled={form.formState.isSubmitting || !form.formState.isDirty}
|
||||||
|
@ -135,7 +137,7 @@ export function FormSubmit({
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Reset
|
Reset
|
||||||
</Button>
|
</Button> */}
|
||||||
{/* unsaved changes indicator */}
|
{/* unsaved changes indicator */}
|
||||||
{!hideUnsavedChangesIndicator && (
|
{!hideUnsavedChangesIndicator && (
|
||||||
<FormUnsavedChangesIndicator form={form.control} />
|
<FormUnsavedChangesIndicator form={form.control} />
|
||||||
|
|
Loading…
Reference in a new issue