Merge branch 'hn.validator-onboarding' of https://github.com/nimbus-gui/nimbus-gui into hn.validator-onboarding
This commit is contained in:
commit
7f5d054423
|
@ -23,6 +23,7 @@
|
|||
"@reduxjs/toolkit": "^1.9.5",
|
||||
"@status-im/colors": "*",
|
||||
"@status-im/components": "^0.3.0",
|
||||
"@storybook/addon-actions": "^7.4.0",
|
||||
"@tamagui/config": "1.36.4",
|
||||
"@tamagui/react-17-patch": "1.36.4",
|
||||
"@tamagui/vite-plugin": "1.36.4",
|
||||
|
|
|
@ -0,0 +1,27 @@
|
|||
import { useEffect } from 'react'
|
||||
import { useDispatch } from 'react-redux'
|
||||
import ConsensusSelection from './ConsensusSelection'
|
||||
import { withRouter } from 'storybook-addon-react-router-v6'
|
||||
import { selectClient } from '../../../redux/ValidatorOnboarding/ValidatorSetup/slice'
|
||||
|
||||
export default {
|
||||
title: 'ValidatorOnboarding/ConsensusSelection',
|
||||
component: ConsensusSelection,
|
||||
parameters: {
|
||||
layout: 'centered',
|
||||
},
|
||||
tags: ['autodocs'],
|
||||
decorators: [withRouter()],
|
||||
}
|
||||
|
||||
type ConsensusSelectionProps = React.ComponentPropsWithoutRef<typeof ConsensusSelection>
|
||||
|
||||
export const Default: React.FC<ConsensusSelectionProps> = args => {
|
||||
const dispatch = useDispatch()
|
||||
|
||||
useEffect(() => {
|
||||
dispatch(selectClient('Erigon'))
|
||||
}, [dispatch])
|
||||
|
||||
return <ConsensusSelection {...args} />
|
||||
}
|
|
@ -4479,7 +4479,7 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@storybook/addon-actions@npm:7.4.0":
|
||||
"@storybook/addon-actions@npm:7.4.0, @storybook/addon-actions@npm:^7.4.0":
|
||||
version: 7.4.0
|
||||
resolution: "@storybook/addon-actions@npm:7.4.0"
|
||||
dependencies:
|
||||
|
@ -15064,6 +15064,7 @@ __metadata:
|
|||
"@reduxjs/toolkit": ^1.9.5
|
||||
"@status-im/colors": "*"
|
||||
"@status-im/components": ^0.3.0
|
||||
"@storybook/addon-actions": ^7.4.0
|
||||
"@storybook/addon-essentials": ^7.2.0
|
||||
"@storybook/addon-interactions": ^7.2.0
|
||||
"@storybook/addon-links": ^7.2.0
|
||||
|
|
Loading…
Reference in New Issue