Skip to content

Commit

Permalink
Fjerner prefiks interface frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
Bjodn committed Feb 20, 2025
1 parent ef32698 commit 05b2a8b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { StatusBar } from '~shared/statusbar/Statusbar'
import React, { useEffect, useState } from 'react'
import { Box, Heading } from '@navikt/ds-react'
import { formaterDato } from '~utils/formatering/dato'
import { EtteroppgjoerOpplysninger } from '~components/etteroppgjoer/EtteroppgjoerOpplysninger'
import { IEtteroppgjoer } from '~shared/types/Etteroppgjoer'
import { OpplysningerForEtteroppgjoer } from '~components/etteroppgjoer/OpplysningerForEtteroppgjoer'
import { Etteroppgjoer } from '~shared/types/Etteroppgjoer'
import { useApiCall } from '~shared/hooks/useApiCall'
import { hentEtteroppgjoer } from '~shared/api/etteroppgjoer'
import { useParams } from 'react-router-dom'
Expand All @@ -15,7 +15,7 @@ export function Etteroppgjoersbehandling() {
const { etteroppgjoerId } = useParams()

const [etteroppgjoerResult, hentEtteroppgjoerRequest] = useApiCall(hentEtteroppgjoer)
const [etteroppgjoer, setEtteroppgjoer] = useState<IEtteroppgjoer>()
const [etteroppgjoer, setEtteroppgjoer] = useState<Etteroppgjoer>()

useEffect(() => {
if (!etteroppgjoerId) return
Expand All @@ -40,7 +40,7 @@ export function Etteroppgjoersbehandling() {
<Box paddingInline="16" paddingBlock="4 2">
Skatteoppgjør mottatt: {formaterDato(etteroppgjoer.behandling.opprettet)}
</Box>
<EtteroppgjoerOpplysninger opplysninger={etteroppgjoer.opplysninger} />
<OpplysningerForEtteroppgjoer opplysninger={etteroppgjoer.opplysninger} />
</>
),
})}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Box, Heading, Table, VStack } from '@navikt/ds-react'
import React from 'react'
import { IEtteroppgjoerOpplysninger } from '~shared/types/Etteroppgjoer'
import { EtteroppgjoerOpplysninger } from '~shared/types/Etteroppgjoer'
import { NOK } from '~utils/formatering/formatering'

export const EtteroppgjoerOpplysninger = ({ opplysninger }: { opplysninger: IEtteroppgjoerOpplysninger }) => {
export const OpplysningerForEtteroppgjoer = ({ opplysninger }: { opplysninger: EtteroppgjoerOpplysninger }) => {
return (
<>
<VStack paddingBlock="8" paddingInline="16 8">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { apiClient, ApiResponse } from '~shared/api/apiClient'
import { IEtteroppgjoer } from '~shared/types/Etteroppgjoer'
import { Etteroppgjoer } from '~shared/types/Etteroppgjoer'

export const hentEtteroppgjoer = async (behandlingId: string): Promise<ApiResponse<IEtteroppgjoer>> => {
export const hentEtteroppgjoer = async (behandlingId: string): Promise<ApiResponse<Etteroppgjoer>> => {
return apiClient.get(`/etteroppgjoer/${behandlingId}`)
}
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import { ISak } from '~shared/types/sak'

export interface IEtteroppgjoer {
behandling: IEtteroppgjoerBehandling
opplysninger: IEtteroppgjoerOpplysninger
export interface Etteroppgjoer {
behandling: EtteroppgjoerBehandling
opplysninger: EtteroppgjoerOpplysninger
}

export interface IEtteroppgjoerBehandling {
export interface EtteroppgjoerBehandling {
id: string
status: string
sak: ISak
aar: number
opprettet: string // Mottatt?
}

export interface IEtteroppgjoerOpplysninger {
export interface EtteroppgjoerOpplysninger {
skatt: OpplysnignerSkatt
ainntekt: AInntekt
// TODO..
Expand Down

0 comments on commit 05b2a8b

Please sign in to comment.