From 52064906712d976adbdebaa2fdc16a841be120cc Mon Sep 17 00:00:00 2001 From: guanbinrui Date: Thu, 1 Jul 2021 10:13:28 +0800 Subject: [PATCH] fix: lint error --- packages/maskbook/src/plugins/ITO/UI/CreateForm.tsx | 2 +- packages/maskbook/src/plugins/ITO/UI/ITO.tsx | 4 +--- packages/maskbook/src/plugins/ITO/UI/SwapDialog.tsx | 4 +++- .../plugins/ITO/contracts/useITO_ContractAddress.ts | 2 +- packages/maskbook/src/web3/UI/TxFeeEstimation.tsx | 11 ++++++++++- 5 files changed, 16 insertions(+), 7 deletions(-) diff --git a/packages/maskbook/src/plugins/ITO/UI/CreateForm.tsx b/packages/maskbook/src/plugins/ITO/UI/CreateForm.tsx index ebf426435dbb..b640199fd713 100644 --- a/packages/maskbook/src/plugins/ITO/UI/CreateForm.tsx +++ b/packages/maskbook/src/plugins/ITO/UI/CreateForm.tsx @@ -5,7 +5,7 @@ import { useITOConstants, useTokenBalance, } from '@masknet/web3-shared' -import { formatAmount, formatBalance, isGreaterThan, isZero} from '@masknet/web3-shared' +import { formatAmount, formatBalance, isGreaterThan, isZero } from '@masknet/web3-shared' import { Box, CircularProgress, makeStyles, TextField, Typography } from '@material-ui/core' import CheckIcon from '@material-ui/icons/Check' import UnCheckIcon from '@material-ui/icons/Close' diff --git a/packages/maskbook/src/plugins/ITO/UI/ITO.tsx b/packages/maskbook/src/plugins/ITO/UI/ITO.tsx index d99bc22c1797..5658b76e7667 100644 --- a/packages/maskbook/src/plugins/ITO/UI/ITO.tsx +++ b/packages/maskbook/src/plugins/ITO/UI/ITO.tsx @@ -15,9 +15,7 @@ import { useChainIdValid, useTokenConstants, } from '@masknet/web3-shared' -import { - TokenIcon, -} from '@masknet/shared' +import { TokenIcon } from '@masknet/shared' import { Box, Card, Grid, Link, makeStyles, Theme, Typography } from '@material-ui/core' import OpenInNewIcon from '@material-ui/icons/OpenInNew' import { BigNumber } from 'bignumber.js' diff --git a/packages/maskbook/src/plugins/ITO/UI/SwapDialog.tsx b/packages/maskbook/src/plugins/ITO/UI/SwapDialog.tsx index cbec390a4be2..1f8dbc9e898c 100644 --- a/packages/maskbook/src/plugins/ITO/UI/SwapDialog.tsx +++ b/packages/maskbook/src/plugins/ITO/UI/SwapDialog.tsx @@ -3,7 +3,9 @@ import BigNumber from 'bignumber.js' import { v4 as uuid } from 'uuid' import { CircularProgress, makeStyles, Slider, Typography } from '@material-ui/core' import { - formatBalance, pow10, ZERO, + formatBalance, + pow10, + ZERO, ChainId, currySameAddress, ERC20TokenDetailed, diff --git a/packages/maskbook/src/plugins/ITO/contracts/useITO_ContractAddress.ts b/packages/maskbook/src/plugins/ITO/contracts/useITO_ContractAddress.ts index 5b3e32bf7706..1379e0bb87ca 100644 --- a/packages/maskbook/src/plugins/ITO/contracts/useITO_ContractAddress.ts +++ b/packages/maskbook/src/plugins/ITO/contracts/useITO_ContractAddress.ts @@ -1,7 +1,7 @@ import { useNetworkType, NetworkType, useITOConstants } from '@masknet/web3-shared' export function useITO_ContractAddress() { - const {ITO_CONTRACT_ADDRESS,ITO_BSC_POLYGON_CONTRACT_ADDRESS } = useITOConstants() + const { ITO_CONTRACT_ADDRESS, ITO_BSC_POLYGON_CONTRACT_ADDRESS } = useITOConstants() const networkType = useNetworkType() return networkType === NetworkType.Ethereum ? ITO_CONTRACT_ADDRESS : ITO_BSC_POLYGON_CONTRACT_ADDRESS diff --git a/packages/maskbook/src/web3/UI/TxFeeEstimation.tsx b/packages/maskbook/src/web3/UI/TxFeeEstimation.tsx index c0f3d9feb609..2de934a3ce4f 100644 --- a/packages/maskbook/src/web3/UI/TxFeeEstimation.tsx +++ b/packages/maskbook/src/web3/UI/TxFeeEstimation.tsx @@ -1,7 +1,16 @@ import { useCallback, useMemo, useState } from 'react' import { Grid, makeStyles, Paper, Typography, useTheme } from '@material-ui/core' import { useValueRef } from '@masknet/shared' -import { formatBalance, formatWeiToGwei, EthereumTokenType, getChainDetailed, useChainId, useGasPrice, GasNow, ChainId } from '@masknet/web3-shared' +import { + formatBalance, + formatWeiToGwei, + EthereumTokenType, + getChainDetailed, + useChainId, + useGasPrice, + GasNow, + ChainId, +} from '@masknet/web3-shared' import { useI18N, useRemoteControlledDialog } from '../../utils' import { Image } from '../../components/shared/Image' import { useAssets } from '../../plugins/Wallet/hooks/useAssets'