-
Notifications
You must be signed in to change notification settings - Fork 5
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
Use Søknadvedlegginfo instead of Vedlegg in Søknad #72
Conversation
@@ -1,21 +1,21 @@ | |||
export type UtenlandsoppholdPeriode = { | |||
export interface UtenlandsoppholdPeriode { |
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.
pga. linting
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.
Ser bra ut dette her. Kun en kommentar på Søknadsvedlegg.
En annen litt mer generell ting: er ikke vedleggsoversikten(e) egentlig bolker, ikke spørsmål (ser i koden her at de blir sendt til render-funksjoner på Spørsmål og ikke Bolk)? Sånn jeg ser det er opplastning av vedlegg med visning av liste + mulighet for å fjerne elementer fra lista, konseptuelt likere en bolk enn et spørsmål.
type: SøknadsvedleggType; | ||
} | ||
|
||
const Søknadsvedlegg: React.StatelessComponent<Props> = ({ type }) => ( |
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.
Er dette bare for typingens skyld? Foreslår å heller legge inn typen (evt. generic om det lar seg gjøre) i common enn å lage en wrapperkomponent i hvert prosjekt for dette behovet.
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.
Ja, det er i utgangspunktet kun for typing, og jeg tror det gir større verdi enn det koster å lage en egen for hvert prosjekt. Men skal se mer på generic
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.
Det blir vel omfattende å få inn typing på gruppen i hele attachments, så velger å holde det so det er enn så lenge
Jeg har ikke sett så mye på bruken av den, men ja det er nok kanskje mer som en bolk. Det får vi fikse etterhvert som vi lager sidene |
No description provided.