Skip to content

Commit

Permalink
chore(storybook): fix Icon stories (#1514)
Browse files Browse the repository at this point in the history
  • Loading branch information
ValeraS authored Apr 16, 2024
1 parent f54da2d commit f93496c
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions src/components/Icon/__stories__/Icon.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,9 @@ import type {Meta, StoryObj} from '@storybook/react';
import {Showcase} from '../../../demo/Showcase';
import {Icon} from '../Icon';

const icons = [Gear, Envelope, Rocket].reduce(
(acc, fn) => {
acc[fn.name] = fn;
return acc;
},
{} as {[key: string]: React.FunctionComponent},
);
const icons = {Gear, Envelope, Rocket};

export default {
const meta: Meta<typeof Icon> = {
title: 'Components/Data Display/Icon',
component: Icon,
argTypes: {
Expand All @@ -40,7 +34,9 @@ export default {
},
},
},
} as Meta;
};

export default meta;

type Story = StoryObj<typeof Icon>;

Expand Down

0 comments on commit f93496c

Please sign in to comment.