-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix unnecessary references to progressStepper component inside the pr…
…ogressIndicator story
- Loading branch information
Richard Bangay
committed
Jul 8, 2024
1 parent
562a60f
commit 25ce833
Showing
2 changed files
with
16 additions
and
15 deletions.
There are no files selected for viewing
29 changes: 15 additions & 14 deletions
29
client/components/mma/shared/ProgressIndicator.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,24 @@ | ||
import type { Meta, StoryFn } from '@storybook/react'; | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
import { ProgressIndicator } from './ProgressIndicator'; | ||
import { ProgressStepper } from './ProgressStepper'; | ||
|
||
export default { | ||
title: 'Components/ProgressIndicator', | ||
component: ProgressStepper, | ||
component: ProgressIndicator, | ||
parameters: { | ||
layout: 'fullscreen', | ||
}, | ||
} as Meta<typeof ProgressStepper>; | ||
} as Meta<typeof ProgressIndicator>; | ||
|
||
export const OldVersion: StoryFn<typeof ProgressIndicator> = () => { | ||
return ( | ||
<ProgressIndicator | ||
steps={[ | ||
{ title: 'Reason' }, | ||
{ title: 'Review', isCurrentStep: true }, | ||
{ title: 'Confirmation' }, | ||
]} | ||
/> | ||
); | ||
export const OldVersion: StoryObj<typeof ProgressIndicator> = { | ||
render: () => { | ||
return ( | ||
<ProgressIndicator | ||
steps={[ | ||
{ title: 'Reason' }, | ||
{ title: 'Review', isCurrentStep: true }, | ||
{ title: 'Confirmation' }, | ||
]} | ||
/> | ||
); | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters