Skip to content

Commit

Permalink
Merge pull request #431 from developmentseed/fix/required-profile-att…
Browse files Browse the repository at this point in the history
…ribute

Fix required profile attribute checkbox
  • Loading branch information
kamicut authored Mar 20, 2023
2 parents 1afc278 + e57b09c commit 60624c0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
6 changes: 4 additions & 2 deletions src/components/edit-team-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ export default function EditTeamForm({
{staff && isCreateForm && (
<FormControl pt={4}>
<Flex alignItems='center' gap={2}>
<Checkbox
<Field
as={Checkbox}
id='orgTeam-checkbox'
name='orgTeam-checkbox'
type='checkbox'
Expand Down Expand Up @@ -261,7 +262,8 @@ export default function EditTeamForm({
<Heading variant='sectionHead'>Location</Heading>
<FormControl>
<Flex alignItems='center' gap={2}>
<Checkbox
<Field
as={Checkbox}
id='hasLocation-checkbox'
name='hasLocation-checkbox'
type='checkbox'
Expand Down
3 changes: 2 additions & 1 deletion src/components/profile-attribute-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ export default function ProfileAttributeForm({
alignItems='center'
htmlFor='required'
>
<Checkbox
<Field
as={Checkbox}
type='checkbox'
name='required'
id='required'
Expand Down
3 changes: 2 additions & 1 deletion src/components/profile-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,8 @@ export default class ProfileForm extends Component {
alignItems={'center'}
gap={2}
>
<Checkbox
<Field
as={Checkbox}
checked={consentChecked}
onChange={(e) =>
this.setConsentChecked(e.target.checked)
Expand Down
2 changes: 1 addition & 1 deletion src/pages/organizations/[id]/edit-profiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export default class OrgEditProfile extends Component {
{ key: 'visibility' },
{ key: 'key_type', label: 'type' },
{ key: 'required' },
{ key: 'actions', render: this.renderActions },
{ key: 'actions', render: this.renderActions, alignment: 'center' },
]

let rows = []
Expand Down

0 comments on commit 60624c0

Please sign in to comment.