fix: change deposit header to title

This commit is contained in:
RadoslavDimchev 2023-09-20 23:12:04 +03:00
parent 1583fd295f
commit 936941c57d
3 changed files with 10 additions and 10 deletions

View File

@ -7,7 +7,7 @@ import ValidatorRequest from './ValidatorRequest'
import Validators from './Validators' import Validators from './Validators'
import ConnectWallet from './ConnectWallet' import ConnectWallet from './ConnectWallet'
import ConnectedWallet from './ConnectedWallet' import ConnectedWallet from './ConnectedWallet'
import DepositHeader from './DepositHeader' import DepositTitle from './DepositTitle'
import DepositSubtitle from './DepositSubtitle' import DepositSubtitle from './DepositSubtitle'
const Deposit = () => { const Deposit = () => {
@ -16,7 +16,7 @@ const Deposit = () => {
const validatorRequests = [1, 2] const validatorRequests = [1, 2]
const isConnectedWallet = false const isConnectedWallet = false
const isTransactionConfirmation = true const isTransactionConfirmation = false
const addValidatorHandler = () => { const addValidatorHandler = () => {
setValidatorCount((state: number) => state + 1) setValidatorCount((state: number) => state + 1)
@ -34,7 +34,7 @@ const Deposit = () => {
return ( return (
<YStack space={'$3'} style={{ width: '100%', padding: '16px 32px', alignItems: 'start' }}> <YStack space={'$3'} style={{ width: '100%', padding: '16px 32px', alignItems: 'start' }}>
<DepositHeader isTransactionConfirmation={isTransactionConfirmation} /> <DepositTitle isTransactionConfirmation={isTransactionConfirmation} />
{isTransactionConfirmation ? ( {isTransactionConfirmation ? (
<DepositSubtitle /> <DepositSubtitle />
) : ( ) : (

View File

@ -1,15 +1,15 @@
import type { Meta, StoryObj } from '@storybook/react' import type { Meta, StoryObj } from '@storybook/react'
import DepositHeader from './DepositHeader' import DepositTitle from './DepositTitle'
const meta = { const meta = {
title: 'ValidatorOnboarding/DepositHeader', title: 'ValidatorOnboarding/DepositTitle',
component: DepositHeader, component: DepositTitle,
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },
tags: ['autodocs'], tags: ['autodocs'],
} satisfies Meta<typeof DepositHeader> } satisfies Meta<typeof DepositTitle>
export default meta export default meta
type Story = StoryObj<typeof meta> type Story = StoryObj<typeof meta>

View File

@ -1,10 +1,10 @@
import { Text } from '@status-im/components' import { Text } from '@status-im/components'
type DepositHeaderProps = { type DepositTitleProps = {
isTransactionConfirmation: boolean isTransactionConfirmation: boolean
} }
const DepositHeader = ({ isTransactionConfirmation }: DepositHeaderProps) => { const DepositTitle = ({ isTransactionConfirmation }: DepositTitleProps) => {
return ( return (
<Text size={19} weight={'semibold'}> <Text size={19} weight={'semibold'}>
{isTransactionConfirmation ? 'Transaction Confirmation' : 'Deposit Funds'} {isTransactionConfirmation ? 'Transaction Confirmation' : 'Deposit Funds'}
@ -12,4 +12,4 @@ const DepositHeader = ({ isTransactionConfirmation }: DepositHeaderProps) => {
) )
} }
export default DepositHeader export default DepositTitle