Skip to content

Commit

Permalink
Merge pull request #4749 from UniversityOfHelsinkiCS/OOD-82
Browse files Browse the repository at this point in the history
[UserPage] Added service provider check to show IamGroupsCard
  • Loading branch information
rikurauhala authored Feb 26, 2025
2 parents 99ff14b + 77831b3 commit eb2576b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions services/frontend/src/pages/Users/UserPage/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Alert, Box, Container, Stack } from '@mui/material'

import { isDefaultServiceProvider } from '@/common'
import { Loading } from '@/components/material/Loading'
import { useTitle } from '@/hooks/title'
import { useGetUserQuery } from '@/redux/users'
Expand Down Expand Up @@ -34,9 +35,11 @@ export const UserPage = ({ userId }: { userId: string }) => {
<MissingIdAlert visible={!user.sisPersonId} />
<InfoCard user={user} />
<Box gap={2} sx={{ display: 'flex', flexDirection: { xs: 'column', md: 'row' } }}>
<Box flex={1}>
<IamGroupsCard user={user} />
</Box>
{isDefaultServiceProvider() && (
<Box flex={1}>
<IamGroupsCard user={user} />
</Box>
)}
<Box flex={2}>
<RolesCard user={user} />
</Box>
Expand Down

0 comments on commit eb2576b

Please sign in to comment.