feat: remove mandatory value from activation card

This commit is contained in:
RadoslavDimchev 2023-08-30 15:50:40 +03:00
parent 2c11fd2bc3
commit c349c56ee2
3 changed files with 1 additions and 4 deletions

View File

@ -53,7 +53,6 @@ const Activation = () => {
<ActivationCard text="Validators" value="4" /> <ActivationCard text="Validators" value="4" />
<ActivationCard <ActivationCard
text="Execution Sync Status" text="Execution Sync Status"
value=""
isGaugeIncluded={true} isGaugeIncluded={true}
gaugeColor={'#2a4af5'} gaugeColor={'#2a4af5'}
gaugeSynced={123.524} gaugeSynced={123.524}
@ -61,7 +60,6 @@ const Activation = () => {
/> />
<ActivationCard <ActivationCard
text="Execution Sync Status" text="Execution Sync Status"
value=""
isGaugeIncluded={true} isGaugeIncluded={true}
gaugeColor={'#EB5757'} gaugeColor={'#EB5757'}
gaugeSynced={123.524} gaugeSynced={123.524}

View File

@ -77,6 +77,5 @@ export const WithoutTitle: Story = {
export const WithoutValue: Story = { export const WithoutValue: Story = {
args: { args: {
text: 'Title', text: 'Title',
value: '',
}, },
} }

View File

@ -4,7 +4,7 @@ import ActivationSyncCard from './ActivationSyncCard'
type ActivationCardProps = { type ActivationCardProps = {
text: string text: string
value: string value?: string
isGaugeIncluded?: boolean isGaugeIncluded?: boolean
gaugeColor?: string gaugeColor?: string
gaugeSynced?: number gaugeSynced?: number