Skip to content

Commit

Permalink
cleanup: simplify DataBlock stories
Browse files Browse the repository at this point in the history
  • Loading branch information
BrickheadJohnny committed Nov 28, 2024
1 parent dcbf40c commit e1aa4a8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
8 changes: 0 additions & 8 deletions src/stories/requirements/DataBlock.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
import { DataBlock } from "@/components/requirements/DataBlock";
import { Card } from "@/components/ui/Card";
import type { Meta, StoryObj } from "@storybook/react";

const meta: Meta<typeof DataBlock> = {
title: "Requirement building blocks/DataBlock",
component: DataBlock,
decorators: (Story) => (
<Card className="p-4">
<span>{"This is a "}</span>
<Story />
<span>{" example"}</span>
</Card>
),
};

export default meta;
Expand Down
7 changes: 1 addition & 6 deletions src/stories/requirements/DataBlockWithCopy.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { DataBlockWithCopy } from "@/components/requirements/DataBlockWithCopy";
import { Card } from "@/components/ui/Card";
import { TooltipProvider } from "@/components/ui/Tooltip";
import type { Meta, StoryObj } from "@storybook/react";

Expand All @@ -8,11 +7,7 @@ const meta: Meta<typeof DataBlockWithCopy> = {
component: DataBlockWithCopy,
decorators: (Story) => (
<TooltipProvider>
<Card className="p-4">
<span>{"This is a "}</span>
<Story />
<span>{" example"}</span>
</Card>
<Story />
</TooltipProvider>
),
};
Expand Down

0 comments on commit e1aa4a8

Please sign in to comment.