Skip to content

Commit

Permalink
fix(cardlinkstory): fix card link story
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Protheroe committed May 22, 2023
1 parent 5c36a94 commit 2e26c97
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/components/Card/CardLink.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
import React from "react";
import { ComponentStory, ComponentMeta } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react";

import { Heading, P } from "../Typography";

import Card from "./Card";
import Component from "./CardLink";

export default {
const meta: Meta<typeof Component> = {
title: "Cards/Card Link",
component: Component,
argTypes: {},
} as ComponentMeta<typeof Component>;
};

export default meta;
type Story = StoryObj<typeof Component>;

const Template: ComponentStory<typeof Component> = () => {
return (
export const CardLink: Story = {
render: () => (
<Card $background={"grey4"}>
<Heading
$mt={24}
Expand All @@ -32,7 +34,5 @@ const Template: ComponentStory<typeof Component> = () => {
ensure the Heading is focusable
</P>
</Card>
);
),
};

export const CardLink = Template.bind({});

0 comments on commit 2e26c97

Please sign in to comment.