From be0e13aebde5f2cb66176dc5e56c750d3582e7e9 Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Wed, 27 Sep 2023 17:49:20 +0300 Subject: [PATCH] feat: add client setup subtitle constant --- src/components/General/ValidatorsMenuWithPrice.stories.ts | 4 ++-- src/constants.ts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/General/ValidatorsMenuWithPrice.stories.ts b/src/components/General/ValidatorsMenuWithPrice.stories.ts index e73d3a7f..a77f1d93 100644 --- a/src/components/General/ValidatorsMenuWithPrice.stories.ts +++ b/src/components/General/ValidatorsMenuWithPrice.stories.ts @@ -1,7 +1,7 @@ import type { Meta, StoryObj } from '@storybook/react' import ValidatorsMenuWithPrice from './ValidatorsMenuWithPrice' -import { DEPOSIT_SUBTITLE } from '../../constants' +import { CLIENT_SETUP_SUBTITLE, DEPOSIT_SUBTITLE } from '../../constants' const meta = { title: 'General/ValidatorsMenuWithPrice', @@ -24,7 +24,7 @@ export const ClientSetupLabel: Story = { args: { validatorCount: 2, changeValidatorCountHandler: () => {}, - label: 'How many Validators would you like to run?', + label: CLIENT_SETUP_SUBTITLE, }, } diff --git a/src/constants.ts b/src/constants.ts index 89fdf1f1..6ceaca1b 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -32,3 +32,4 @@ export const CURRENCIES = [ }, ] export const DEPOSIT_SUBTITLE = 'Connect you Wallet to stake required ETH for new validators' +export const CLIENT_SETUP_SUBTITLE = 'How many Validators would you like to run?'