fix: stepper name collision

This commit is contained in:
RadoslavDimchev 2023-08-24 10:29:59 +03:00
parent ad0ee340c6
commit b51a54596e
3 changed files with 5 additions and 5 deletions

View File

@ -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>

View File

@ -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)