Skip to content

Commit

Permalink
Bruker ny oppgavetype på tildelingskomponentene
Browse files Browse the repository at this point in the history
  • Loading branch information
matsbyfl committed Nov 26, 2024
1 parent 56f8e17 commit 9ee9803
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions client/src/oppgavebenk/OppgaveIkkeTildelt.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ import { Button } from '@navikt/ds-react'
import { postOppgaveTildeling } from '../io/http'
import { useInnloggetSaksbehandler } from '../state/authentication'
import { amplitude_taxonomy, logAmplitudeEvent } from '../utils/amplitude'
import { Oppgavetype, OppgaveV2 } from '../types/types.internal'
import { Oppgavetype } from '../types/types.internal'
import { OppgaveApiOppgave } from '../types/experimentalTypes'

interface OppgaveIkkeTildeltProps {
oppgave: OppgaveV2
oppgave: OppgaveApiOppgave
gåTilSak: boolean
}

Expand Down
8 changes: 4 additions & 4 deletions client/src/oppgavebenk/Oppgavetildeling.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import { memo } from 'react'

import { EllipsisCell } from '../felleskomponenter/table/Celle'
import { OppgaveV2 } from '../types/types.internal'
import { OppgaveApiOppgave } from '../types/experimentalTypes'
import { OppgaveIkkeTildelt } from './OppgaveIkkeTildelt'

interface OppgavetildelingProps {
oppgave: OppgaveV2
oppgave: OppgaveApiOppgave
}

export const Oppgavetildeling = memo(({ oppgave }: OppgavetildelingProps) => {
if (oppgave.saksbehandler) {
return <EllipsisCell minLength={15} value={oppgave.saksbehandler.navn} />
if (oppgave.tildeltSaksbehandler) {
return <EllipsisCell minLength={15} value={oppgave.tildeltSaksbehandler.navn} />
} else {
return <OppgaveIkkeTildelt oppgave={oppgave} gåTilSak={true} />
}
Expand Down

0 comments on commit 9ee9803

Please sign in to comment.