fix: stepper name collision
This commit is contained in:
parent
ad0ee340c6
commit
b51a54596e
|
@ -1,16 +1,16 @@
|
||||||
import type { Meta, StoryObj } from '@storybook/react'
|
import type { Meta, StoryObj } from '@storybook/react'
|
||||||
|
|
||||||
import StepperForm from './Stepper'
|
import FormStepper from './FormStepper'
|
||||||
|
|
||||||
const meta = {
|
const meta = {
|
||||||
title: 'ValidatorOnboarding/Stepper',
|
title: 'ValidatorOnboarding/FormStepper',
|
||||||
component: StepperForm,
|
component: FormStepper,
|
||||||
parameters: {
|
parameters: {
|
||||||
layout: 'centered',
|
layout: 'centered',
|
||||||
},
|
},
|
||||||
tags: ['autodocs'],
|
tags: ['autodocs'],
|
||||||
argTypes: {},
|
argTypes: {},
|
||||||
} satisfies Meta<typeof StepperForm>
|
} satisfies Meta<typeof FormStepper>
|
||||||
|
|
||||||
export default meta
|
export default meta
|
||||||
type Story = StoryObj<typeof meta>
|
type Story = StoryObj<typeof meta>
|
|
@ -1,6 +1,6 @@
|
||||||
import './StepperStyles.css'
|
|
||||||
import { useState } from 'react'
|
import { useState } from 'react'
|
||||||
import { Stepper, Step } from 'react-form-stepper'
|
import { Stepper, Step } from 'react-form-stepper'
|
||||||
|
import './FormStepper.css'
|
||||||
|
|
||||||
const FormStepper = () => {
|
const FormStepper = () => {
|
||||||
const [activeStep, setActiveStep] = useState<number>(0)
|
const [activeStep, setActiveStep] = useState<number>(0)
|
Loading…
Reference in New Issue