aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/atoms/layout/time
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/atoms/layout/time')
-rw-r--r--src/components/atoms/layout/time/time.stories.ts17
-rw-r--r--src/components/atoms/layout/time/time.stories.tsx32
2 files changed, 17 insertions, 32 deletions
diff --git a/src/components/atoms/layout/time/time.stories.ts b/src/components/atoms/layout/time/time.stories.ts
new file mode 100644
index 0000000..6e00a4c
--- /dev/null
+++ b/src/components/atoms/layout/time/time.stories.ts
@@ -0,0 +1,17 @@
+import type { Meta, StoryObj } from '@storybook/react';
+import { Time } from './time';
+
+const meta = {
+ component: Time,
+ title: 'Atoms/Layout/Time',
+} satisfies Meta<typeof Time>;
+
+export default meta;
+
+type Story = StoryObj<typeof meta>;
+
+export const Example: Story = {
+ args: {
+ date: '2022-03-15 10:44:20',
+ },
+};
diff --git a/src/components/atoms/layout/time/time.stories.tsx b/src/components/atoms/layout/time/time.stories.tsx
deleted file mode 100644
index d534f14..0000000
--- a/src/components/atoms/layout/time/time.stories.tsx
+++ /dev/null
@@ -1,32 +0,0 @@
-import type { ComponentMeta, ComponentStory } from '@storybook/react';
-import { Time } from './time';
-
-/**
- * Time - Storybook Meta
- */
-export default {
- title: 'Atoms/Layout/Time',
- component: Time,
- argTypes: {
- date: {
- control: {
- type: 'text',
- },
- description: 'A valid date string.',
- type: {
- name: 'string',
- required: true,
- },
- },
- },
-} as ComponentMeta<typeof Time>;
-
-const Template: ComponentStory<typeof Time> = (args) => <Time {...args} />;
-
-/**
- * Time Stories - Default
- */
-export const Default = Template.bind({});
-Default.args = {
- date: '2022-03-15 10:44:20',
-};