Skip to content

Commit

Permalink
Fix forms
Browse files Browse the repository at this point in the history
  • Loading branch information
dani-mp committed Jan 10, 2025
1 parent 87c4620 commit 0300c2d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,11 @@ export function UIDEditor() {
</Box>
<DialogActions>
<DialogCancelButton size="medium" />
<DialogActionButton size="medium" disabled={Boolean(error)}>
<DialogActionButton
type="submit"
size="medium"
disabled={Boolean(error)}
>
Save
</DialogActionButton>
</DialogActions>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ export const ConvertLegacySliceAsNewSliceDialog: FC<DialogProps> = ({
<DialogActions>
<DialogCancelButton size="medium" />
<DialogActionButton
type="submit"
size="medium"
loading={isLoading}
disabled={errors && Object.keys(errors).length > 0}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ export const ConvertLegacySliceAsNewVariationDialog: FC<DialogProps> = ({
<DialogActions>
<DialogCancelButton size="medium" />
<DialogActionButton
type="submit"
size="medium"
loading={isLoading}
disabled={Object.keys(errors).length > 0}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ export const ConvertLegacySliceMergeWithIdenticalDialog: FC<DialogProps> = ({
<DialogActions>
<DialogCancelButton size="medium" />
<DialogActionButton
type="submit"
size="medium"
loading={isLoading}
disabled={Boolean(error)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ export const RenameVariationModal: FC<RenameVariationModalProps> = ({
<DialogActions>
<DialogCancelButton size="medium" />
<DialogActionButton
type="submit"
size="medium"
loading={isRenaming}
disabled={Boolean(error)}
Expand Down

0 comments on commit 0300c2d

Please sign in to comment.