diff --git a/src/frontend/komponenter/Fagsak/FagsakContainer.tsx b/src/frontend/komponenter/Fagsak/FagsakContainer.tsx index 4c53168a..8e82a0fc 100644 --- a/src/frontend/komponenter/Fagsak/FagsakContainer.tsx +++ b/src/frontend/komponenter/Fagsak/FagsakContainer.tsx @@ -68,39 +68,32 @@ const FagsakContainer: React.FC = () => { return ; } - if (visVenteModal && ventegrunn && behandling?.status === RessursStatus.SUKSESS) { - return ( - - ); - } - switch (fagsak?.status) { case RessursStatus.SUKSESS: { switch (behandling?.status) { case RessursStatus.SUKSESS: return ( - !visVenteModal && ( - <> - - - {ventegrunn && ( - - )} - - - - - ) + <> + + + {ventegrunn && ( + + )} + {visVenteModal && ventegrunn && ( + + )} + + + + + ); case RessursStatus.IKKE_TILGANG: return ( diff --git a/src/frontend/komponenter/Felleskomponenter/Modal/HenterBehandling.tsx b/src/frontend/komponenter/Felleskomponenter/Modal/HenterBehandling.tsx index 41cf7708..8e1cbfcf 100644 --- a/src/frontend/komponenter/Felleskomponenter/Modal/HenterBehandling.tsx +++ b/src/frontend/komponenter/Felleskomponenter/Modal/HenterBehandling.tsx @@ -1,24 +1,34 @@ import * as React from 'react'; -import { BodyShort, HStack, Loader, Modal } from '@navikt/ds-react'; +import styled from 'styled-components'; + +import { BodyShort, Box, HStack, Heading, Loader, VStack } from '@navikt/ds-react'; + +const BoxMedMargin = styled(Box)` + margin-top: 2rem; +`; const HenterBehandling: React.FC = () => { return ( - - - -
- Henting av behandlingen tar litt tid. - Vennligst vent! -
+ + + + Henter behandling + + + Henting av behandlingen tar litt tid. + Vennligst vent! + + -
-
+ + ); };