diff --git a/src/components/generator/form/Form.tsx b/src/components/generator/form/Form.tsx index 2eb024a2..a7a0d238 100644 --- a/src/components/generator/form/Form.tsx +++ b/src/components/generator/form/Form.tsx @@ -26,9 +26,9 @@ const StyledForm = styled.form` overflow: auto; ` -const initialFormValues = { +const initialFormValues: FormValues = { headings: {}, - sections: [], + sections: ['profile', 'education', 'work', 'skills', 'projects', 'awards'], selectedTemplate: 1 } diff --git a/src/types.ts b/src/types.ts index 5d766c2f..854e2d46 100644 --- a/src/types.ts +++ b/src/types.ts @@ -102,7 +102,14 @@ export type Resume = { export type FormValues = Resume & { headings: { [K in keyof Resume]?: string } - sections: (keyof Resume | 'profile')[] + sections: ( + | 'profile' + | 'education' + | 'work' + | 'skills' + | 'projects' + | 'awards' + )[] selectedTemplate: number }