feat: add data to validator request

This commit is contained in:
RadoslavDimchev 2023-09-22 15:48:46 +03:00
parent b4f57332fb
commit f7a6238539
1 changed files with 6 additions and 3 deletions

View File

@ -17,7 +17,10 @@ const Deposit = () => {
const [validatorCount, setValidatorCount] = useState(0)
const { isWalletConnected } = useSelector((state: RootState) => state.deposit)
const validatorRequests = [1, 2]
const validatorRequests = [
{ name: '1', address: 'zQ3...9d4Gs0' },
{ name: '2', address: 'zQ3...9d4Gs0' },
]
const isTransactionConfirmation = false
const addValidatorHandler = () => {
@ -48,8 +51,8 @@ const Deposit = () => {
/>
)}
<DividerLine />
{validatorRequests.map((_, index) => (
<ValidatorRequest key={index} />
{validatorRequests.map((validator, index) => (
<ValidatorRequest validator={validator} key={index} />
))}
{isInfoBoxVisible && (
<InformationBox