Skip to content

Commit

Permalink
Change copy
Browse files Browse the repository at this point in the history
  • Loading branch information
oddsson committed Jul 5, 2024
1 parent 3c08d98 commit ccde05a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 15 deletions.
4 changes: 2 additions & 2 deletions apps/judicial-system/web/pages/fangelsi/krofur.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import AllCases from '@island.is/judicial-system-web/src/routes/Shared/Cases/AllCases'
import PrisonCases from '@island.is/judicial-system-web/src/routes/Shared/Cases/PrisonCases'

export default AllCases
export default PrisonCases
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ export const strings = defineMessages({
description: 'Notaður sem titill á "dómfelldu" hluta af yfirliti ákæru.',
},
reviewTagAppealed: {
id: 'judicial.system.core:info_card_indictment.review_tag_appealed',
defaultMessage: 'Áfrýjun',
id: 'judicial.system.core:info_card_indictment.review_tag_appealed_v1',
defaultMessage: 'Áfrýja dómi',
description:
'Notað sem texti á tagg fyrir "Áfrýjun" tillögu í yfirliti ákæru.',
},
reviewTagAccepted: {
id: 'judicial.system.core:info_card_indictment.review_tag_completed',
defaultMessage: 'Una',
id: 'judicial.system.core:info_card_indictment.review_tag_completed_v1',
defaultMessage: 'Una dómi',
description: 'Notað sem texti á tagg fyrir "Una" tillögu í yfirliti ákæru.',
},
indictmentReviewedDateTitle: {
Expand Down
10 changes: 1 addition & 9 deletions apps/judicial-system/web/src/routes/Shared/Cases/AllCases.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,14 @@
import React, { FC, useContext } from 'react'

import {
isPrisonSystemUser,
isPublicProsecutorUser,
} from '@island.is/judicial-system/types'
import { isPublicProsecutorUser } from '@island.is/judicial-system/types'
import { UserContext } from '@island.is/judicial-system-web/src/components'

import PublicProsecutorCases from '../../PublicProsecutor/Cases/PublicProsecutorCases'
import Cases from './Cases'
import PrisonCases from './PrisonCases'

export const AllCases: FC = () => {
const { user } = useContext(UserContext)

if (isPrisonSystemUser(user)) {
return <PrisonCases />
}

if (isPublicProsecutorUser(user)) {
return <PublicProsecutorCases />
}
Expand Down

0 comments on commit ccde05a

Please sign in to comment.