mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-03-03 12:30:34 +00:00
Merge branch 'hn.validator-onboarding' of https://github.com/nimbus-gui/nimbus-gui into hn.validator-onboarding
This commit is contained in:
commit
0ae7486d02
@ -0,0 +1,19 @@
|
|||||||
|
import type { Meta, StoryObj } from '@storybook/react'
|
||||||
|
|
||||||
|
import ConsensusClientCard from './ConsensusClientCard'
|
||||||
|
import { withRouter } from 'storybook-addon-react-router-v6'
|
||||||
|
|
||||||
|
const meta = {
|
||||||
|
title: 'ValidatorOnboarding/ConsensusClientCard',
|
||||||
|
component: ConsensusClientCard,
|
||||||
|
|
||||||
|
tags: ['autodocs'],
|
||||||
|
decorators: [withRouter()],
|
||||||
|
} satisfies Meta<typeof ConsensusClientCard>
|
||||||
|
|
||||||
|
export default meta
|
||||||
|
type Story = StoryObj<typeof meta>
|
||||||
|
|
||||||
|
export const Default: Story = {
|
||||||
|
args: { name: 'Erigon', icon: '/icons/erigon-circle.png' },
|
||||||
|
}
|
@ -0,0 +1,23 @@
|
|||||||
|
import type { Meta, StoryObj } from '@storybook/react'
|
||||||
|
|
||||||
|
import ConsensusGaugeCard from './ConsensusGaugeCard'
|
||||||
|
import { withRouter } from 'storybook-addon-react-router-v6'
|
||||||
|
|
||||||
|
const meta = {
|
||||||
|
title: 'ValidatorOnboarding/ConsensusGaugeCard',
|
||||||
|
component: ConsensusGaugeCard,
|
||||||
|
parameters: {
|
||||||
|
layout: 'centered',
|
||||||
|
},
|
||||||
|
tags: ['autodocs'],
|
||||||
|
decorators: [withRouter()],
|
||||||
|
} satisfies Meta<typeof ConsensusGaugeCard>
|
||||||
|
|
||||||
|
export default meta
|
||||||
|
type Story = StoryObj<typeof meta>
|
||||||
|
|
||||||
|
export const Default: Story = {
|
||||||
|
args: {
|
||||||
|
color:'orange', synced:140000, total:200000, title: 'Synced Files'
|
||||||
|
},
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
import type { Meta, StoryObj } from '@storybook/react'
|
||||||
|
|
||||||
|
import SyntaxHighlighter from './SyntaxHighlighter'
|
||||||
|
import { withRouter } from 'storybook-addon-react-router-v6'
|
||||||
|
|
||||||
|
const meta = {
|
||||||
|
title: 'ValidatorOnboarding/SyntaxHighlighter',
|
||||||
|
component: SyntaxHighlighter,
|
||||||
|
parameters: {
|
||||||
|
layout: 'centered',
|
||||||
|
},
|
||||||
|
tags: ['autodocs'],
|
||||||
|
decorators: [withRouter()],
|
||||||
|
} satisfies Meta<typeof SyntaxHighlighter>
|
||||||
|
|
||||||
|
export default meta
|
||||||
|
type Story = StoryObj<typeof meta>
|
||||||
|
|
||||||
|
export const Default: Story = {
|
||||||
|
args: { rows: ['yarn', 'yarn build', 'yarn dev', 'house'] },
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user