diff --git a/src/pages/ValidatorOnboarding/Deposit/TransactionStatus.stories.ts b/src/pages/ValidatorOnboarding/Deposit/TransactionStatus.stories.ts new file mode 100644 index 00000000..9a725d91 --- /dev/null +++ b/src/pages/ValidatorOnboarding/Deposit/TransactionStatus.stories.ts @@ -0,0 +1,43 @@ +import type { Meta, StoryObj } from '@storybook/react' + +import TransactionStatus from './TransactionStatus' + +const meta = { + title: 'ValidatorOnboarding/TransactionStatus', + component: TransactionStatus, + parameters: { + layout: 'centered', + }, + tags: ['autodocs'], +} satisfies Meta + +export default meta +type Story = StoryObj + +export const Default: Story = { + args: { + isTransactionConfirmation: false, + transactionStatus: '', + }, +} + +export const Complete: Story = { + args: { + isTransactionConfirmation: true, + transactionStatus: 'Complete', + }, +} + +export const Pending: Story = { + args: { + isTransactionConfirmation: true, + transactionStatus: 'Pending', + }, +} + +export const Fail: Story = { + args: { + isTransactionConfirmation: true, + transactionStatus: 'Fail', + }, +} diff --git a/src/pages/ValidatorOnboarding/Deposit/TransactionStatus.tsx b/src/pages/ValidatorOnboarding/Deposit/TransactionStatus.tsx index 540e2538..fad45381 100644 --- a/src/pages/ValidatorOnboarding/Deposit/TransactionStatus.tsx +++ b/src/pages/ValidatorOnboarding/Deposit/TransactionStatus.tsx @@ -1,5 +1,5 @@ import { Text } from '@status-im/components' -import { FullscreenMacOsIcon, CloseMacOsIcon, MinimizeMacOsIcon } from '@status-im/icons' +import { FullscreenMacOsIcon, MinimizeMacOsIcon, CloseMacOsIcon } from '@status-im/icons' import { XStack } from 'tamagui' type VTransactionStatusProps = { @@ -16,8 +16,8 @@ const TransactionStatus = ({ {isTransactionConfirmation ? ( {transactionStatus === 'Complete' && } - {transactionStatus === 'Failed' && } {transactionStatus === 'Pending' && } + {transactionStatus === 'Fail' && } Transaction {transactionStatus}