Skip to content

Commit ab803e9

Browse files
committed
fix build issue
1 parent 418fa38 commit ab803e9

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

components/Forms/UpdateProfileForm/UpdateProfileForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const onboardingFormInitialValues = {
2020

2121
export type UpdateProfileFormShape = typeof onboardingFormInitialValues;
2222

23-
interface UpdateProfileFormProps {
23+
export interface UpdateProfileFormProps {
2424
initialValues?: UpdateProfileFormShape;
2525
}
2626

components/Forms/UpdateProfileForm/__stories__/UpdateProfileForm.stories.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,30 @@ import { ProfessionalDetails } from 'components/Forms/UpdateProfileForm/steps/Pr
22
import { MilitaryDetails } from 'components/Forms/UpdateProfileForm/steps/MilitaryDetails';
33
import { MilitaryStatus } from 'components/Forms/UpdateProfileForm/steps/MilitaryStatus';
44
import { PersonalDetails } from 'components/Forms/UpdateProfileForm/steps/PersonalDetails';
5+
import type { UpdateProfileFormProps } from '../UpdateProfileForm';
56
import UpdateProfileForm from '../UpdateProfileForm';
67

78
export 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
2526
export const Default = Template.bind({});
27+
28+
// @ts-expect-error - Storybook thing with static properties.
2629
Default.args = {
2730
initialValues: {
2831
...ProfessionalDetails.initialValues,

tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,11 @@
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
}

0 commit comments

Comments
 (0)