Skip to content

Commit

Permalink
fix: lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
guanbinrui committed Jul 1, 2021
1 parent 8e70e89 commit 5206490
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/maskbook/src/plugins/ITO/UI/CreateForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 1 addition & 3 deletions packages/maskbook/src/plugins/ITO/UI/ITO.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 3 additions & 1 deletion packages/maskbook/src/plugins/ITO/UI/SwapDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
11 changes: 10 additions & 1 deletion packages/maskbook/src/web3/UI/TxFeeEstimation.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down

0 comments on commit 5206490

Please sign in to comment.