mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-18 06:16:38 +00:00
feat(validator-request): divider from prop
This commit is contained in:
parent
d279b97806
commit
2718212c27
@ -58,6 +58,7 @@ const Deposit = () => {
|
|||||||
key={index}
|
key={index}
|
||||||
name={(index + 1).toString()}
|
name={(index + 1).toString()}
|
||||||
isTransactionConfirmation={isTransactionConfirmation}
|
isTransactionConfirmation={isTransactionConfirmation}
|
||||||
|
isWithDivider={true}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
{isInfoBoxVisible && !isTransactionConfirmation && (
|
{isInfoBoxVisible && !isTransactionConfirmation && (
|
||||||
|
@ -34,3 +34,11 @@ export const BigNumber: Story = {
|
|||||||
isTransactionConfirmation: false,
|
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 = {
|
type ValidatorRequestProps = {
|
||||||
name: string
|
name: string
|
||||||
isTransactionConfirmation?: boolean
|
isTransactionConfirmation?: boolean
|
||||||
|
isWithDivider?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
const ValidatorRequest = ({
|
const ValidatorRequest = ({
|
||||||
name,
|
name,
|
||||||
isTransactionConfirmation,
|
isTransactionConfirmation,
|
||||||
|
isWithDivider,
|
||||||
}: ValidatorRequestProps) => {
|
}: ValidatorRequestProps) => {
|
||||||
let transactionStatus = 'Complete'
|
let transactionStatus = 'Complete'
|
||||||
const isTransactionCompleted = transactionStatus === 'Complete'
|
const isTransactionCompleted = transactionStatus === 'Complete'
|
||||||
@ -48,7 +50,7 @@ const ValidatorRequest = ({
|
|||||||
/>
|
/>
|
||||||
</XStack>
|
</XStack>
|
||||||
</XStack>
|
</XStack>
|
||||||
<DividerLine />
|
{isWithDivider && <DividerLine />}
|
||||||
</YStack>
|
</YStack>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user