diff --git a/apps/judicial-system/web/pages/fangelsi/krofur.ts b/apps/judicial-system/web/pages/fangelsi/krofur.ts index e58efb695346..7cf5786c649d 100644 --- a/apps/judicial-system/web/pages/fangelsi/krofur.ts +++ b/apps/judicial-system/web/pages/fangelsi/krofur.ts @@ -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 diff --git a/apps/judicial-system/web/src/components/InfoCard/InfoCardIndictment.strings.ts b/apps/judicial-system/web/src/components/InfoCard/InfoCardIndictment.strings.ts index c5df8aff53b7..e4ff9d014ddb 100644 --- a/apps/judicial-system/web/src/components/InfoCard/InfoCardIndictment.strings.ts +++ b/apps/judicial-system/web/src/components/InfoCard/InfoCardIndictment.strings.ts @@ -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: { diff --git a/apps/judicial-system/web/src/routes/Shared/Cases/AllCases.tsx b/apps/judicial-system/web/src/routes/Shared/Cases/AllCases.tsx index 00f3bb40f0c4..fc94c44896cd 100644 --- a/apps/judicial-system/web/src/routes/Shared/Cases/AllCases.tsx +++ b/apps/judicial-system/web/src/routes/Shared/Cases/AllCases.tsx @@ -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 - } - if (isPublicProsecutorUser(user)) { return }