feat: add different values to act sync card story

This commit is contained in:
RadoslavDimchev 2023-08-30 12:17:44 +03:00
parent 37ce0b3f71
commit 53775bac2d
1 changed files with 33 additions and 1 deletions

View File

@ -1,7 +1,7 @@
import type { Meta, StoryObj } from '@storybook/react' import type { Meta, StoryObj } from '@storybook/react'
import { withRouter } from 'storybook-addon-react-router-v6'
import ActivationSyncCard from './ActivationSyncCard' import ActivationSyncCard from './ActivationSyncCard'
import { withRouter } from 'storybook-addon-react-router-v6'
const meta = { const meta = {
title: 'ValidatorOnboarding/ActivationSyncCard', title: 'ValidatorOnboarding/ActivationSyncCard',
@ -32,3 +32,35 @@ export const Red: Story = {
gaugeTotal: 172.503, gaugeTotal: 172.503,
}, },
} }
export const MaxValue: Story = {
args: {
gaugeColor: '#2a4af5',
gaugeSynced: 172.503,
gaugeTotal: 172.503,
},
}
export const OverMaxValue: Story = {
args: {
gaugeColor: '#2a4af5',
gaugeSynced: 200,
gaugeTotal: 172.503,
},
}
export const MinValue: Story = {
args: {
gaugeColor: '#2a4af5',
gaugeSynced: 0,
gaugeTotal: 172.503,
},
}
export const UnderMinValue: Story = {
args: {
gaugeColor: '#2a4af5',
gaugeSynced: -100,
gaugeTotal: 172.503,
},
}