Skip to content

Commit 8251ab2

Browse files
committed
chore: update stories * 2
1 parent ac2074d commit 8251ab2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/components/fields/FilterPicker/FilterPicker.stories.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -446,12 +446,12 @@ export const SingleSelection: Story = {
446446
await userEvent.click(trigger);
447447
},
448448
render: (args) => (
449-
<FilterPicker {...args}>
450-
{fruits.map((fruit) => (
449+
<FilterPicker<(typeof fruits)[number]> {...args} items={fruits}>
450+
{(fruit) => (
451451
<FilterPicker.Item key={fruit.key} textValue={fruit.label}>
452452
{fruit.label}
453453
</FilterPicker.Item>
454-
))}
454+
)}
455455
</FilterPicker>
456456
),
457457
};
@@ -467,12 +467,12 @@ export const Clearable: Story = {
467467
isClearable: true,
468468
},
469469
render: (args) => (
470-
<FilterPicker {...args}>
471-
{fruits.map((fruit) => (
470+
<FilterPicker<(typeof fruits)[number]> {...args} items={fruits}>
471+
{(fruit) => (
472472
<FilterPicker.Item key={fruit.key} textValue={fruit.label}>
473473
{fruit.label}
474474
</FilterPicker.Item>
475-
))}
475+
)}
476476
</FilterPicker>
477477
),
478478
};

0 commit comments

Comments
 (0)