Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sdocs(training-link): update stories to csf3 for Training Link component #1338

Merged
merged 1 commit into from
Oct 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions packages/training-link/src/TrainingLink.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { Meta, Story } from '@storybook/react';
import { StoryObj } from '@storybook/react';
import TrainingLink, { TrainingLinkProps } from './TrainingLink';

export default {
Expand All @@ -11,13 +11,13 @@ export default {
},
},
},
} as Meta;

export const Default: Story<TrainingLinkProps> = ({ link, name }) => <TrainingLink link={link} name={name} />;

Default.args = {
name: 'Appeals',
link: 'https://google.com',
component: TrainingLink,
};

Default.storyName = 'default';
export const _Default: StoryObj<typeof TrainingLink> = {
render: ({ link, name }) => <TrainingLink link={link} name={name} />,
args: {
name: 'Appeals',
link: 'https://google.com',
},
};