Skip to content

Commit

Permalink
fix(storybook): fix the argTypes.weekStart.mapping on `Datepicker.s…
Browse files Browse the repository at this point in the history
…tories.tsx` (themesberg#1254)

fix themesberg#1167
  • Loading branch information
ktanoooo authored and abdulbasithqb committed Jan 31, 2024
1 parent 860fedc commit 2a377a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Datepicker/Datepicker.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ export default {
},
weekStart: {
options: Object.values(WeekStart).filter((x) => typeof x === 'string'),
mapping: WeekStart,
mapping: Object.entries(WeekStart)
.filter(([, value]) => typeof value !== 'string')
.reduce((acc, [key, value]) => ({ ...acc, [key]: value }), {}),
control: {
type: 'select',
labels: Object.entries(WeekStart)
Expand Down

0 comments on commit 2a377a3

Please sign in to comment.