fix: change advicsories to advisories
This commit is contained in:
parent
68da4553d0
commit
05f478bf43
|
@ -1,17 +1,17 @@
|
|||
import type { Meta, StoryObj } from '@storybook/react'
|
||||
import { withRouter } from 'storybook-addon-react-router-v6'
|
||||
|
||||
import Advicsories from './Advicsories'
|
||||
import Advisories from './Advisories'
|
||||
|
||||
const meta = {
|
||||
title: 'ValidatorOnboarding/Advicsories',
|
||||
component: Advicsories,
|
||||
title: 'ValidatorOnboarding/Advisories',
|
||||
component: Advisories,
|
||||
parameters: {
|
||||
layout: 'centered',
|
||||
},
|
||||
tags: ['autodocs'],
|
||||
decorators: [withRouter],
|
||||
} satisfies Meta<typeof Advicsories>
|
||||
} satisfies Meta<typeof Advisories>
|
||||
|
||||
export default meta
|
||||
type Story = StoryObj<typeof meta>
|
|
@ -8,7 +8,7 @@ type AdvisoryTopicsType = {
|
|||
[key: string]: string[]
|
||||
}
|
||||
|
||||
const Advicsories = () => {
|
||||
const Advisories = () => {
|
||||
const [selectedTitle, setSelectedTitle] = useState('Bad Behaviour')
|
||||
|
||||
const isSameTitle = (title: string) => selectedTitle === title
|
||||
|
@ -54,7 +54,7 @@ const Advicsories = () => {
|
|||
)
|
||||
}
|
||||
|
||||
export default Advicsories
|
||||
export default Advisories
|
||||
|
||||
const unicodeNumbers = ['➀', '➁', '➂', '➃', '➄', '➅']
|
||||
|
|
@ -47,7 +47,7 @@
|
|||
left: 35%;
|
||||
}
|
||||
|
||||
[data-step="Advicsories"]::after {
|
||||
[data-step="Advisories"]::after {
|
||||
left: 30%;
|
||||
}
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ export const OverviewActive: Story = {
|
|||
},
|
||||
}
|
||||
|
||||
export const AdvicsoriesActive: Story = {
|
||||
export const AdvisoriesActive: Story = {
|
||||
args: {
|
||||
activeStep: 1,
|
||||
changeActiveStep: () => {},
|
||||
|
|
|
@ -8,7 +8,7 @@ type FormStepperProps = {
|
|||
|
||||
const steps = [
|
||||
{ label: 'Overview', subtitle: 'Get Started' },
|
||||
{ label: 'Advicsories', subtitle: 'Understand your Duties' },
|
||||
{ label: 'Advisories', subtitle: 'Understand your Duties' },
|
||||
{ label: 'Client Setup', subtitle: 'Execution & Consensus' },
|
||||
{ label: 'Validator Setup', subtitle: 'Validators & Withdrawal' },
|
||||
{ label: 'Key Generation', subtitle: 'Secure your Keypairs' },
|
||||
|
|
|
@ -4,7 +4,7 @@ import Titles from '../../components/General/Titles'
|
|||
import { useState } from 'react'
|
||||
import Overview from './Overview/Overview'
|
||||
import KeyGeneration from './KeyGeneration/KeyGeneration'
|
||||
import Advicsories from './Advicsories/Advicsories'
|
||||
import Advisories from './Advisories/Advisories'
|
||||
import Activation from './Activation/Activation'
|
||||
import './layoutGradient.css'
|
||||
import ValidatorBoxWrapper from './ValidatorBoxWrapper/ValidatorBoxWrapper'
|
||||
|
@ -51,7 +51,7 @@ const ValidatorOnboarding = () => {
|
|||
<FormStepper activeStep={activeStep} changeActiveStep={changeActiveStep} />
|
||||
<ValidatorBoxWrapper>
|
||||
{activeStep === 0 && <Overview />}
|
||||
{activeStep === 1 && <Advicsories />}
|
||||
{activeStep === 1 && <Advisories />}
|
||||
{activeStep === 2 && <ClientSetup />}
|
||||
{activeStep === 3 && <ConsensusSelection />}
|
||||
{/* <ValidatorSetup/> or <ValidatorSetupInstall/> for activeStep 3 */}
|
||||
|
|
Loading…
Reference in New Issue