Skip to content

Commit

Permalink
chore(occupational-licenses): fix (#15286)
Browse files Browse the repository at this point in the history
Co-authored-by: Þorkell Máni Þorkelsson <[email protected]>
  • Loading branch information
thorkellmani and thorkellmani authored Jun 19, 2024
1 parent aa760c4 commit fe1a351
Showing 1 changed file with 41 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,48 +177,47 @@ const OccupationalLicenseDetail = () => {
}
/>
)}
{(license?.status || loading) &&
license?.type !== OccupationalLicenseV2LicenseType.EDUCATION && (
<UserInfoLine
loading={loading}
label={formatMessage(om.licenseStatus)}
content={
<Box
display="flex"
justifyContent="center"
alignItems="center"
columnGap="p1"
>
<Text>
{formatMessage(
license?.status === 'VALID'
? om.validLicense
: license?.status === 'LIMITED'
? om.validWithLimitationsLicense
: om.invalidLicense,
)}
</Text>
<Icon
icon={
license?.status === 'VALID'
? 'checkmarkCircle'
: license?.status === 'LIMITED'
? 'warning'
: 'closeCircle'
}
color={
license?.status === 'VALID'
? 'mint600'
: license?.status === 'LIMITED'
? 'yellow600'
: 'red600'
}
type="filled"
/>
</Box>
}
/>
)}
{(license?.status || loading) && !isOldEducationLicense && (
<UserInfoLine
loading={loading}
label={formatMessage(om.licenseStatus)}
content={
<Box
display="flex"
justifyContent="center"
alignItems="center"
columnGap="p1"
>
<Text>
{formatMessage(
license?.status === 'VALID'
? om.validLicense
: license?.status === 'LIMITED'
? om.validWithLimitationsLicense
: om.invalidLicense,
)}
</Text>
<Icon
icon={
license?.status === 'VALID'
? 'checkmarkCircle'
: license?.status === 'LIMITED'
? 'warning'
: 'closeCircle'
}
color={
license?.status === 'VALID'
? 'mint600'
: license?.status === 'LIMITED'
? 'yellow600'
: 'red600'
}
type="filled"
/>
</Box>
}
/>
)}
{license?.genericFields?.length &&
license.genericFields.map((g, index) => (
<UserInfoLine
Expand Down

0 comments on commit fe1a351

Please sign in to comment.