Skip to content

Commit

Permalink
fix(j-s): eslint and unsused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
thorhildurt committed Dec 11, 2024
1 parent aa1ca4f commit 527b33b
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 23 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { RolesRule, RulesType } from '@island.is/judicial-system/auth'
import { UserRole } from '@island.is/judicial-system/types'

import { UpdateDefendantDto } from '../dto/updateDefendant.dto'

const limitedAccessFields: (keyof UpdateDefendantDto)[] = ['punishmentType']
Expand Down
Original file line number Diff line number Diff line change
@@ -1,29 +1,31 @@
import {
JwtAuthGuard,
RolesGuard,
RolesRules,
CurrentHttpUser,
} from '@island.is/judicial-system/auth'
import { ServiceRequirement, User } from '@island.is/judicial-system/types'
import { LOGGER_PROVIDER } from '@island.is/logging'
import {
Body,
Controller,
UseGuards,
Inject,
Patch,
Param,
Body,
Patch,
UseGuards,
} from '@nestjs/common'
import { ApiTags, ApiOkResponse } from '@nestjs/swagger'
import { prisonSystemStaffRule } from '../../guards'
import { CaseExistsGuard, CurrentCase, Case } from '../case'
import { DefendantService } from './defendant.service'
import { ApiOkResponse,ApiTags } from '@nestjs/swagger'

import type { Logger } from '@island.is/logging'
import { LOGGER_PROVIDER } from '@island.is/logging'

import {
CurrentHttpUser,
JwtAuthGuard,
RolesGuard,
RolesRules,
} from '@island.is/judicial-system/auth'
import { User } from '@island.is/judicial-system/types'

import { Case,CaseExistsGuard, CurrentCase } from '../case'
import { UpdateDefendantDto } from './dto/updateDefendant.dto'
import { CurrentDefendant } from './guards/defendant.decorator'
import { DefendantExistsGuard } from './guards/defendantExists.guard'
import { Defendant } from './models/defendant.model'
import type { Logger } from '@island.is/logging'
import { prisonSystemStaffUpdateRule } from './guards/rolesRules'
import { Defendant } from './models/defendant.model'
import { DefendantService } from './defendant.service'

interface LimitedAccessUpdateDefendant
extends Pick<UpdateDefendantDto, 'punishmentType'> {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ export const strings = defineMessages({
defaultMessage: 'Sekt',
description: 'Notaður sem texti í sekt valmöguleika í Refsitegund',
},
indictmentRulingDecisionfine: {
id: 'judicial.system.core:court.indictment_overview.punishmentType.indictmentRulingDecisionfine',
indictmentRulingDecisionFine: {
id: 'judicial.system.core:court.indictment_overview.punishmentType.indictmentRulingDecisionFine',
defaultMessage: 'Viðurlagaákvörðun',
description: 'Notaður sem texti í viðurlagaákvörðun í Refsitegund',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { useIntl } from 'react-intl'
import { Box, RadioButton, Text } from '@island.is/island-ui/core'
import * as constants from '@island.is/judicial-system/consts'
import { formatDate } from '@island.is/judicial-system/formatters'
import { PunishmentType } from '@island.is/judicial-system/types'
import { core } from '@island.is/judicial-system-web/messages'
import {
BlueBox,
Expand All @@ -18,16 +19,13 @@ import {
} from '@island.is/judicial-system-web/src/components'
import {
CaseFileCategory,
Defendant,
} from '@island.is/judicial-system-web/src/graphql/schema'
import {
useCase,
useDefendants,
useFileList,
} from '@island.is/judicial-system-web/src/utils/hooks'

import { strings } from './IndictmentOverview.strings'
import { PunishmentType } from '@island.is/judicial-system/types'

const IndictmentOverview = () => {
const { workingCase } = useContext(FormContext)
Expand Down Expand Up @@ -166,7 +164,7 @@ const IndictmentOverview = () => {
}}
large
backgroundColor="white"
label={formatMessage(strings.indictmentRulingDecisionfine)}
label={formatMessage(strings.indictmentRulingDecisionFine)}
/>
</Box>
<Box marginBottom={2}>
Expand Down

0 comments on commit 527b33b

Please sign in to comment.