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

ProgressIndicator and ProgressStepper seperate stories #1355

Merged
merged 2 commits into from
Jul 9, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
31 changes: 0 additions & 31 deletions client/components/mma/shared/ProgressIndicator.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,37 +10,6 @@ export default {
},
} as Meta<typeof ProgressStepper>;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👀 Should this ProgressStepper reference still be here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ooo, no it shouldn't!


export const Default: StoryFn<typeof ProgressStepper> = () => {
return (
<>
<ProgressStepper
steps={[{ title: 'Reason' }, { title: 'Review' }]}
/>
<ProgressStepper
steps={[
{ title: 'Reason' },
{ title: 'Review', isCurrentStep: true },
{ title: 'Confirmation' },
]}
/>
<ProgressStepper
steps={[
{ title: 'Reason', isCurrentStep: true },
{ title: 'Review' },
{ title: 'Confirmation' },
]}
/>
<ProgressStepper
steps={[
{ title: 'Reason' },
{ title: 'Review' },
{ title: 'Confirmation', isCurrentStep: true },
]}
/>
</>
);
};

export const OldVersion: StoryFn<typeof ProgressIndicator> = () => {
return (
<ProgressIndicator
Expand Down
30 changes: 30 additions & 0 deletions client/components/mma/shared/ProgressStepper.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import type { Meta, StoryObj } from '@storybook/react';
import { ProgressStepper } from './ProgressStepper';

export default {
title: 'Components/ProgressStepper',
component: ProgressStepper,
parameters: {
layout: 'fullscreen',
},
} as Meta<typeof ProgressStepper>;

export const WithTitleWithCurrentStep: StoryObj<typeof ProgressStepper> = {
render: () => {
return (
<ProgressStepper
steps={[
{ title: 'Reason' },
{ title: 'Review', isCurrentStep: true },
{ title: 'Confirmation' },
]}
/>
);
},
};

export const WithoutTitleWithCurrentStep: StoryObj<typeof ProgressStepper> = {
render: () => {
return <ProgressStepper steps={[{}, { isCurrentStep: true }, {}]} />;
},
};
Loading