File tree Expand file tree Collapse file tree
components/Forms/UpdateProfileForm Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ const onboardingFormInitialValues = {
2020
2121export type UpdateProfileFormShape = typeof onboardingFormInitialValues ;
2222
23- interface UpdateProfileFormProps {
23+ export interface UpdateProfileFormProps {
2424 initialValues ?: UpdateProfileFormShape ;
2525}
2626
Original file line number Diff line number Diff line change @@ -2,27 +2,30 @@ import { ProfessionalDetails } from 'components/Forms/UpdateProfileForm/steps/Pr
22import { MilitaryDetails } from 'components/Forms/UpdateProfileForm/steps/MilitaryDetails' ;
33import { MilitaryStatus } from 'components/Forms/UpdateProfileForm/steps/MilitaryStatus' ;
44import { PersonalDetails } from 'components/Forms/UpdateProfileForm/steps/PersonalDetails' ;
5+ import type { UpdateProfileFormProps } from '../UpdateProfileForm' ;
56import UpdateProfileForm from '../UpdateProfileForm' ;
67
78export default {
89 component : UpdateProfileForm ,
910 title : 'Forms/UpdateProfileForm' ,
1011} ;
1112
12- const Template = arguments_ => {
13+ const Template = ( args : UpdateProfileFormProps ) => {
1314 return (
1415 < >
1516 < span >
1617 Update Profile Form < br />
1718 < b > TO FIX:</ b > < i > cannot proceed to next steps as not authenticated in storybook</ i >
1819 </ span >
19- < UpdateProfileForm { ...arguments_ } />
20+ < UpdateProfileForm { ...args } />
2021 </ >
2122 ) ;
2223} ;
2324
2425// Default Input supplied with only required args
2526export const Default = Template . bind ( { } ) ;
27+
28+ // @ts -expect-error - Storybook thing with static properties.
2629Default . args = {
2730 initialValues : {
2831 ...ProfessionalDetails . initialValues ,
Original file line number Diff line number Diff line change 3737 "types" : [" vitest/globals" , " @testing-library/jest-dom" ]
3838 },
3939 "include" : [
40+ " vitest.config.mts" ,
4041 " next-env.d.ts" ,
4142 " **/*.js" ,
4243 " **/*.ts" ,
4344 " **/*.tsx" ,
44- " vitest.config.mts" ,
45- " components/Form/__tests__/Form.test.tss"
4645 ],
4746 "exclude" : [" node_modules" ]
4847}
You can’t perform that action at this time.
0 commit comments