-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
47 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import Innholdslaster from '../../felles-komponenter/utils/Innholdslaster'; | ||
import React from 'react'; | ||
import { hentPdfTilForhaandsvisning, selectArkivStatus } from '../verktoylinje/arkivering/arkivering-slice'; | ||
import { Button } from '@navikt/ds-react'; | ||
import { Status } from '../../createGenericSlice'; | ||
import { useSelector } from 'react-redux'; | ||
import useAppDispatch from '../../felles-komponenter/hooks/useAppDispatch'; | ||
import { selectVistOppfolgingsperiode } from '../aktivitet/aktivitetlisteSelector'; | ||
|
||
export const JournalforingPage = () => { | ||
const dispatch = useAppDispatch(); | ||
const vistOppfolgingsperiode = useSelector(selectVistOppfolgingsperiode); | ||
const arkiverer = [Status.PENDING, Status.RELOADING].includes(useSelector(selectArkivStatus)); | ||
return ( | ||
<section className="flex flex-col justify-center items-center p-8"> | ||
<div className="aktivitetsplanprint flex justify-center items-center"> | ||
<Innholdslaster avhengigheter={[]}> | ||
<div className="px-12 print:border-none space-x-4"> | ||
<Button | ||
disabled={arkiverer} | ||
variant="secondary" | ||
onClick={() => dispatch(hentPdfTilForhaandsvisning(vistOppfolgingsperiode!!.uuid))} | ||
> | ||
Journalfør | ||
</Button> | ||
<Button | ||
disabled={arkiverer} | ||
variant="secondary" | ||
onClick={() => dispatch(hentPdfTilForhaandsvisning(vistOppfolgingsperiode!!.uuid))} | ||
> | ||
Forhåndsvisning | ||
</Button> | ||
</div> | ||
</Innholdslaster> | ||
</div> | ||
</section> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters