Skip to content

Commit

Permalink
set default sections order
Browse files Browse the repository at this point in the history
  • Loading branch information
ducaale committed Jan 1, 2024
1 parent 5bb9418 commit 304def0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/generator/form/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
9 changes: 8 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 304def0

Please sign in to comment.