Skip to content

Commit

Permalink
[JN-1604] sex at birth admin UX
Browse files Browse the repository at this point in the history
  • Loading branch information
devonbush committed Feb 4, 2025
1 parent 870fc00 commit b8fb74d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ function ReadOnlyProfile(
`${profile.givenName || ''} ${profile.familyName || ''}`.trim()
]}/>
<InfoCardValue title={'Birthdate'} values={[dateToDefaultString(profile.birthDate)]}/>
<InfoCardValue title={'Sex at Birth'} values={[profile.sexAtBirth || '']}/>
<ReadOnlyMailingAddress title={'Primary Address'} mailingAddress={mailingAddress}/>
<InfoCardValue title={'Email'} values={[profile.contactEmail || '']}/>
<InfoCardValue title={'Phone'} values={[profile.phoneNumber || '']}/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ const SexAssignedAtBirthFacet = ({ searchState, updateSearchState }: {
isMulti={true}
options={[
{ label: 'female', value: 'female' },
{ label: 'male', value: 'male' }
{ label: 'male', value: 'male' },
{ label: 'intersex', value: 'intersex' }
]}
value={searchState.sexAtBirth.map(s => ({ label: s, value: s }))}
onChange={selectedOptions => {
Expand Down
7 changes: 5 additions & 2 deletions ui-admin/src/util/table/columnUtils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,15 +168,18 @@ export const getDynamicColumn = <T extends EnrolleeSearchExpressionResult, >(fac
}
}
} else {
return {
const colDef: ColumnDef<T> = {
id: field,
header: _startCase(field.replace('.', ' ')),
accessorKey: field,
cell: cellFn,
meta: {
columnType
}
}
if (cellFn) {
colDef.cell = cellFn
}
return colDef
}
}

Expand Down

0 comments on commit b8fb74d

Please sign in to comment.