Skip to content

Commit

Permalink
fix unnecessary references to progressStepper component inside the pr…
Browse files Browse the repository at this point in the history
…ogressIndicator story
  • Loading branch information
Richard Bangay committed Jul 8, 2024
1 parent 562a60f commit 25ce833
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
29 changes: 15 additions & 14 deletions client/components/mma/shared/ProgressIndicator.stories.tsx
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' },
]}
/>
);
},
};
2 changes: 1 addition & 1 deletion client/components/mma/shared/ProgressIndicator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ interface Step {
isCurrentStep?: true;
}

interface ProgressIndicatorProps {
export interface ProgressIndicatorProps {
steps: [Step, Step, ...Step[]];
additionalCSS?: SerializedStyles;
}
Expand Down

0 comments on commit 25ce833

Please sign in to comment.