From f9ae81db0bd77e768a36ddb94967f27572d79c94 Mon Sep 17 00:00:00 2001 From: Korniichuk Oleksandr Date: Tue, 11 Jan 2022 14:45:48 +0200 Subject: [PATCH] fix: lint errors --- .../src/components/staking/components/Validators.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/packages/frontend/src/components/staking/components/Validators.js b/packages/frontend/src/components/staking/components/Validators.js index efeae7103a..e10f8a3e22 100644 --- a/packages/frontend/src/components/staking/components/Validators.js +++ b/packages/frontend/src/components/staking/components/Validators.js @@ -1,25 +1,19 @@ -import React, { useState, useEffect } from 'react'; +import React, { useState } from 'react'; import { Translate } from 'react-localize-redux'; -import { useDispatch } from 'react-redux'; -import { actions as tokensActions } from '../../../redux/slices/tokens'; import { getValidatorRegExp } from '../../../utils/constants'; import { wallet } from '../../../utils/wallet'; import ListWrapper from './ListWrapper'; import ValidatorBox from './ValidatorBox'; -const { fetchToken } = tokensActions; + export default function Validators({ validators, stakeFromAccount }) { - // const dispatch = useDispatch(); + const [validator, setValidator] = useState(''); const networkId = wallet.connection.networkId; const validatorPrefix = getValidatorRegExp(networkId); const validValidator = validators.map(validator => validator.accountId).includes(validator); - // useEffect(() => { - // dispatch(fetchToken({ contractName: 'token.solniechniy.testnet', accountId: stakeFromAccount })); - // }, []); - return ( <>