Skip to content

Commit

Permalink
fix: story
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyhw committed Feb 7, 2024
1 parent 7319367 commit eef648e
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions stories/template/Header.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
import { ComponentMeta } from '@storybook/react';
import { Meta, StoryObj } from '@storybook/react';
import { Header } from './Header';

export default {
const meta = {
component: Header,
} as ComponentMeta<typeof Header>;
} satisfies Meta<typeof Header>;

export const LoggedIn = {
export default meta;

type Story = StoryObj<typeof meta>;

export const LoggedIn: Story = {
args: { user: {} },
};

export const LoggedOut = { args: {} };
export const LoggedOut: Story = { args: {} };

0 comments on commit eef648e

Please sign in to comment.