-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chore: Bytt ut bruk av familie-form-elements med komponenter fra Aksel #1639
Changes from 29 commits
9de0b72
beaca24
7e630cf
179a9db
fd40d08
7b72830
81ef990
5eb9c1d
c496cea
0668f18
168de4a
9468f2a
9736177
ab96a91
304c0d7
29c332e
8c7eed6
5776cc8
a15fec5
ea4c65a
f22e0dd
fc5a239
edda9d5
27b73b2
8f62e5f
efae649
de38966
cdfe342
78aaaf8
a069e7b
7bdcbc0
8e2b927
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,8 @@ import { styled } from 'styled-components'; | |
import { Column, Row } from 'nav-frontend-grid'; | ||
|
||
import { ExternalLinkIcon } from '@navikt/aksel-icons'; | ||
import { BodyLong, Heading, Link, Radio, ReadMore, Textarea } from '@navikt/ds-react'; | ||
import { BodyLong, Heading, Link, Radio, RadioGroup, ReadMore, Textarea } from '@navikt/ds-react'; | ||
import { ABorderStrong, ASpacing3 } from '@navikt/ds-tokens/dist/tokens'; | ||
import { FamilieRadioGruppe } from '@navikt/familie-form-elements'; | ||
import { Valideringsstatus } from '@navikt/familie-skjema'; | ||
|
||
import { | ||
|
@@ -170,17 +169,11 @@ const FeilutbetalingForeldelsePeriodeSkjema: React.FC<IProps> = ({ | |
<Spacer20 /> | ||
<Row> | ||
<Column md="5"> | ||
<FamilieRadioGruppe | ||
<RadioGroup | ||
id="foreldet" | ||
erLesevisning={erLesevisning} | ||
readOnly={erLesevisning} | ||
legend="Vurder om perioden er foreldet" | ||
value={ | ||
!erLesevisning | ||
? skjema.felter.foreldelsesvurderingstype.verdi | ||
: periode.foreldelsesvurderingstype | ||
? foreldelsevurderinger[periode.foreldelsesvurderingstype] | ||
: '' | ||
} | ||
value={skjema.felter.foreldelsesvurderingstype.verdi} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Kan ikke mappe om til streng lenger når det er lesevisning, fordi ved lesevisning rendrer vi nå fortsatt selve radiogruppen og ikke en tekststreng. Dette feltet blir satt til periode.foreldelsesvurderingstype i en useEffect lenger opp her, så det burde fortsatt ha riktig verdi i lesevisning |
||
error={ | ||
ugyldigVurderingValgt | ||
? skjema.felter.foreldelsesvurderingstype.feilmelding?.toString() | ||
|
@@ -195,7 +188,7 @@ const FeilutbetalingForeldelsePeriodeSkjema: React.FC<IProps> = ({ | |
{foreldelsevurderinger[type]} | ||
</Radio> | ||
))} | ||
</FamilieRadioGruppe> | ||
</RadioGroup> | ||
</Column> | ||
<Column md="5"> | ||
{erMedTilleggsfrist && ( | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙌