feat: create story for overview card

This commit is contained in:
RadoslavDimchev 2023-08-31 16:53:54 +03:00
parent e05cc80e56
commit 5677438919
1 changed files with 63 additions and 0 deletions

View File

@ -0,0 +1,63 @@
import type { Meta, StoryObj } from '@storybook/react'
import { withRouter } from 'storybook-addon-react-router-v6'
import OverviewCard from './OverviewCard'
const meta = {
title: 'ValidatorOnboarding/OverviewCard',
component: OverviewCard,
tags: ['autodocs'],
decorators: [withRouter],
} satisfies Meta<typeof OverviewCard>
export default meta
type Story = StoryObj<typeof meta>
export const CurrentAPR: Story = {
args: {
text: 'Current APR',
value: '4.40%',
},
}
export const TotalETHStaked: Story = {
args: {
text: 'Total ETH Staked',
value: '9,451,123',
},
}
export const EstimatedActivationTime: Story = {
args: {
text: 'Estimated Activation Time',
value: '32 Days%',
},
}
export const ValidatorQueue: Story = {
args: {
text: 'Validator Queue',
value: '92603',
},
}
export const WithoutTitle: Story = {
args: {
text: '',
value: '92603',
},
}
export const WithoutValue: Story = {
args: {
text: 'Validator Queue',
value: '',
},
}
export const WithoutData: Story = {
args: {
text: '',
value: '',
},
}