Skip to content

Commit

Permalink
Restore types and imports for icons story
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanclark authored and github-actions committed Nov 8, 2024
1 parent da96c54 commit e9734ae
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions web/packages/design/src/Icon/Icons.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

import React from 'react';
import { ComponentType } from 'react';

import { Text } from '..';

import Flex from './../Flex';

import { IconProps } from './Icon';

import * as Icon from '.';

export default {
Expand Down Expand Up @@ -232,7 +234,13 @@ export const Icons = () => (
</Flex>
);

const IconBox = ({ IconCmpt, text }) => (
const IconBox = ({
IconCmpt,
text,
}: {
IconCmpt: ComponentType<IconProps>;
text: string;
}) => (
<Flex m="10px" width="300px">
<IconCmpt />
<Text ml={2}>{text}</Text>
Expand Down

0 comments on commit e9734ae

Please # to comment.