-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Sett opp struktur for ny melding * Bruk Tanstack Form og Zod * Legg til "velg sak" * Legg til feilhåndtering * Send melding * Heading og label * Kommentar * Åpne/lukk til egen komponent * Håndter oppgaveliste * Sett knapptype * Lenke til meldinger * Lint * Bruk checkbox fra Aksel * Bruk atom direkte * Fjern fra utbetaling * Infer type * Forbedre validering av melding og forenkle validering av fnr og enhetsId * Fjern useFodselsnummer * Enhet fra atom * Send inn children riktig * Feilmeldinger * Flytt ut schema * Fjern non-null assertions * Dra ut useSendMelding * Bruk generert client * Bruk generert type * Spesifiser suspending * Dra ut i komponent * Dra ut i komponent * Unsafe fix * Bruk Select * Ikke sååå granulere filer * Trekk ut komponent * Format/lint * Format/lint * Format/lint
- Loading branch information
Showing
34 changed files
with
713 additions
and
53 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
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
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
4 changes: 2 additions & 2 deletions
4
...p/personside/infotabs/meldinger/traadvisning/verktoylinje/oppgave/useForeslåtteEnheter.ts
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
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,23 @@ | ||
import { Checkbox, CheckboxGroup, Label, VStack } from '@navikt/ds-react'; | ||
import { MeldingsType } from 'src/components/melding/VelgMeldingsType'; | ||
|
||
interface AvsluttDialogEtterSendingProps { | ||
meldingsType: MeldingsType; | ||
setMeldingsType: (meldingsType: MeldingsType) => void; | ||
} | ||
|
||
export default function AvsluttDialogEtterSending({ meldingsType, setMeldingsType }: AvsluttDialogEtterSendingProps) { | ||
return ( | ||
<VStack gap="1"> | ||
<CheckboxGroup legend="Avslutt dialog etter sending"> | ||
<Checkbox | ||
value={MeldingsType.Infomelding} | ||
checked={meldingsType === MeldingsType.Infomelding} | ||
onChange={() => setMeldingsType(MeldingsType.Infomelding)} | ||
> | ||
<Label>Gjør om til infomelding</Label> | ||
</Checkbox> | ||
</CheckboxGroup> | ||
</VStack> | ||
); | ||
} |
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,29 @@ | ||
import { ChatIcon, MinusIcon } from '@navikt/aksel-icons'; | ||
import { Button, HStack } from '@navikt/ds-react'; | ||
import { useState } from 'react'; | ||
import NyMelding from 'src/components/melding/NyMelding'; | ||
|
||
export function LukkbarNyMelding() { | ||
const [isOpen, setIsOpen] = useState(false); | ||
|
||
return ( | ||
<HStack> | ||
{!isOpen && ( | ||
<Button type="button" icon={<ChatIcon title="Skriv ny melding" />} onClick={() => setIsOpen(true)} /> | ||
)} | ||
{isOpen && ( | ||
<NyMelding | ||
lukkeKnapp={ | ||
<Button | ||
type="button" | ||
icon={<MinusIcon title="Lukk" />} | ||
variant="tertiary" | ||
size="small" | ||
onClick={() => setIsOpen(false)} | ||
/> | ||
} | ||
/> | ||
)} | ||
</HStack> | ||
); | ||
} |
Oops, something went wrong.