feat(validator-request): divider from prop
This commit is contained in:
parent
d279b97806
commit
2718212c27
|
@ -58,6 +58,7 @@ const Deposit = () => {
|
|||
key={index}
|
||||
name={(index + 1).toString()}
|
||||
isTransactionConfirmation={isTransactionConfirmation}
|
||||
isWithDivider={true}
|
||||
/>
|
||||
))}
|
||||
{isInfoBoxVisible && !isTransactionConfirmation && (
|
||||
|
|
|
@ -34,3 +34,11 @@ export const BigNumber: Story = {
|
|||
isTransactionConfirmation: false,
|
||||
},
|
||||
}
|
||||
|
||||
export const WithDivider: Story = {
|
||||
args: {
|
||||
name: '1',
|
||||
isTransactionConfirmation: false,
|
||||
isWithDivider: true,
|
||||
},
|
||||
}
|
||||
|
|
|
@ -7,11 +7,13 @@ import ValidatorProfile from '../../../../components/General/ValidatorProfile'
|
|||
type ValidatorRequestProps = {
|
||||
name: string
|
||||
isTransactionConfirmation?: boolean
|
||||
isWithDivider?: boolean
|
||||
}
|
||||
|
||||
const ValidatorRequest = ({
|
||||
name,
|
||||
isTransactionConfirmation,
|
||||
isWithDivider,
|
||||
}: ValidatorRequestProps) => {
|
||||
let transactionStatus = 'Complete'
|
||||
const isTransactionCompleted = transactionStatus === 'Complete'
|
||||
|
@ -48,7 +50,7 @@ const ValidatorRequest = ({
|
|||
/>
|
||||
</XStack>
|
||||
</XStack>
|
||||
<DividerLine />
|
||||
{isWithDivider && <DividerLine />}
|
||||
</YStack>
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue