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