aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2023-11-16 18:16:09 +0100
committerArmand Philippot <git@armandphilippot.com>2023-11-16 18:16:09 +0100
commitdcd2a7ab382fece8e0ae2979aad4a180b6a105e1 (patch)
tree0e58f8a5b4977eb0c9ff9759484ecded72bd7e38 /src/components
parent4bdbca861293357bb7928c6c7a5990be9f37380b (diff)
build(components, hooks): fix type errors introduced by deps upgrade
Since #7e37f2b Typescript was complaining about some types.
Diffstat (limited to 'src/components')
-rw-r--r--src/components/molecules/card/card.stories.tsx6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/components/molecules/card/card.stories.tsx b/src/components/molecules/card/card.stories.tsx
index 74f426c..bc9cbd4 100644
--- a/src/components/molecules/card/card.stories.tsx
+++ b/src/components/molecules/card/card.stories.tsx
@@ -1,4 +1,4 @@
-import type { ComponentMeta, ComponentStory } from '@storybook/react';
+import type { ComponentMeta, Story } from '@storybook/react';
import NextImage from 'next/image';
import { Button, ButtonLink, Link, Time } from '../../atoms';
import { Card, type CardProps } from './card';
@@ -19,7 +19,9 @@ export default {
argTypes: {},
} as ComponentMeta<typeof Card>;
-const Template: ComponentStory<typeof Card> = <T extends string | undefined>(
+const Template: Story<CardProps<string | undefined>> = <
+ T extends string | undefined,
+>(
args: CardProps<T>
) => <Card {...args} />;