Skip to content

Commit

Permalink
[Users] Display fullSisuAccess label in orange
Browse files Browse the repository at this point in the history
  • Loading branch information
valtterikantanen committed Apr 29, 2024
1 parent d74338e commit 84e8af8
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions services/frontend/src/components/Users/UserSearchList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,13 @@ export const UserSearchList = () => {
<Label.Group>
{user.accessgroup
.toSorted((a, b) => a.group_code.localeCompare(b.group_code))
.map(({ group_code: code }) => (
<Label content={code} key={code} />
))}
.map(({ group_code: code }) =>
code === 'fullSisuAccess' ? (
<Label color="orange" content={code} key={code} />
) : (
<Label content={code} key={code} />
)
)}
</Label.Group>
),
getRowVal: user => user.accessgroup.map(ag => ag.group_code),
Expand Down

0 comments on commit 84e8af8

Please sign in to comment.