Skip to content

Commit

Permalink
fix storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
dottyy committed Jun 12, 2024
1 parent 48c606c commit 40beace
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Meta, StoryObj } from "@storybook/react";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";

import { CommentaryBoxProps as Props } from "./CommentaryBox";
import Component from "./CommentaryBox";
Expand All @@ -12,14 +11,10 @@ const meta: Meta<typeof Component> = {
export default meta;
type Story = StoryObj<typeof Component>;

const client = new QueryClient();

export const Default: Story = {
render: (args: Props) => (
<div className="flex items-center justify-center p-8">
<QueryClientProvider client={client}>
<Component {...args} />
</QueryClientProvider>
<Component {...args} />
</div>
),
args: {
Expand Down

0 comments on commit 40beace

Please sign in to comment.