feat: create activation sync card story

This commit is contained in:
RadoslavDimchev 2023-08-30 11:46:50 +03:00
parent 8448db37aa
commit 1e1972b0ae
1 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,34 @@
import type { Meta, StoryObj } from '@storybook/react'
import ActivationSyncCard from './ActivationSyncCard'
import { withRouter } from 'storybook-addon-react-router-v6'
const meta = {
title: 'ValidatorOnboarding/ActivationSyncCard',
component: ActivationSyncCard,
parameters: {
layout: 'centered',
},
tags: ['autodocs'],
argTypes: {},
decorators: [withRouter()],
} satisfies Meta<typeof ActivationSyncCard>
export default meta
type Story = StoryObj<typeof meta>
export const Blue: Story = {
args: {
gaugeColor: '#2a4af5',
gaugeSynced: 123.524,
gaugeTotal: 172.503,
},
}
export const Red: Story = {
args: {
gaugeColor: '#EB5757',
gaugeSynced: 123.524,
gaugeTotal: 172.503,
},
}