Skip to content

Commit

Permalink
feat: back to disable button
Browse files Browse the repository at this point in the history
  • Loading branch information
g-saracca committed Aug 2, 2024
1 parent 90c08f7 commit 5bd24f6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,9 @@ export const CollectionForm = ({
</Stack>

<Stack direction="horizontal" className="pt-3">
<Button type="submit">{t('formButtons.save')}</Button>
{/* <Button type="submit" disabled={disableSubmitButton}>
<Button type="submit" disabled={disableSubmitButton}>
{t('formButtons.save')}
</Button> */}
</Button>
<Button
variant="secondary"
type="button"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ type RequiredOptionalRadiosProps =
uniqueInputLevelRowID: string
}

/**
* Component that renders a pair of radio buttons for selecting if a field is required or optional
*
* Is used from a normal field or a child field
*
* If used from a child field, checks if at any moment all siblingChildFields are required then set parent to required also unless parent is required by dataverse
*/

export const RequiredOptionalRadios = ({
disabled,
fieldName,
Expand Down

0 comments on commit 5bd24f6

Please sign in to comment.