Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
interface
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LuckySwap
interface
Commits
9b1ef415
Unverified
Commit
9b1ef415
authored
Jun 25, 2021
by
Yuta Sugimura
Committed by
GitHub
Jun 25, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: remove unneeded react import (#1801)
* Add rules * Remove React import * remove React import
parent
70f48143
Changes
109
Show whitespace changes
Inline
Side-by-side
Showing
109 changed files
with
77 additions
and
111 deletions
+77
-111
.eslintrc.json
.eslintrc.json
+2
-1
Transaction.tsx
src/components/AccountDetails/Transaction.tsx
+0
-1
index.tsx
src/components/AccountDetails/index.tsx
+1
-1
index.tsx
src/components/AddressInputPanel/index.tsx
+1
-1
RangeBadge.tsx
src/components/Badge/RangeBadge.tsx
+0
-2
index.tsx
src/components/Blocklist/index.tsx
+1
-1
index.tsx
src/components/Button/index.tsx
+0
-1
index.tsx
src/components/Confetti/index.tsx
+0
-1
FiatValue.tsx
src/components/CurrencyInputPanel/FiatValue.tsx
+1
-1
index.tsx
src/components/CurrencyInputPanel/index.tsx
+1
-1
index.tsx
src/components/DoubleLogo/index.tsx
+0
-1
index.tsx
src/components/FeeSelector/index.tsx
+0
-1
index.tsx
src/components/FormattedCurrencyAmount/index.tsx
+0
-1
Polling.tsx
src/components/Header/Polling.tsx
+1
-1
URLWarning.tsx
src/components/Header/URLWarning.tsx
+0
-1
UniBalanceContent.tsx
src/components/Header/UniBalanceContent.tsx
+1
-1
index.tsx
src/components/Header/index.tsx
+1
-1
index.tsx
src/components/HoverInlineText/index.tsx
+1
-1
index.tsx
src/components/Identicon/index.tsx
+1
-1
InputStepCounter.tsx
src/components/InputStepCounter/InputStepCounter.tsx
+1
-1
index.tsx
src/components/Loader/index.tsx
+0
-2
index.tsx
src/components/Logo/index.tsx
+1
-1
index.tsx
src/components/ModalViews/index.tsx
+1
-1
index.tsx
src/components/NavigationTabs/index.tsx
+0
-1
ClaimPopup.tsx
src/components/Popups/ClaimPopup.tsx
+1
-1
PopupItem.tsx
src/components/Popups/PopupItem.tsx
+1
-1
TransactionPopup.tsx
src/components/Popups/TransactionPopup.tsx
+1
-1
index.tsx
src/components/Popups/index.tsx
+0
-1
Sushi.tsx
src/components/PositionCard/Sushi.tsx
+0
-1
V2.tsx
src/components/PositionCard/V2.tsx
+1
-1
index.tsx
src/components/PositionCard/index.tsx
+1
-1
index.tsx
src/components/PositionListItem/index.tsx
+1
-1
index.tsx
src/components/PositionPreview/index.tsx
+1
-1
index.tsx
src/components/ProgressSteps/index.tsx
+1
-1
index.tsx
src/components/QuestionHelper/index.tsx
+1
-1
index.tsx
src/components/RangeSelector/index.tsx
+0
-1
index.tsx
src/components/RateToggle/index.tsx
+0
-1
CommonBases.tsx
src/components/SearchModal/CommonBases.tsx
+0
-1
CurrencyList.tsx
src/components/SearchModal/CurrencyList.tsx
+1
-1
CurrencySearch.tsx
src/components/SearchModal/CurrencySearch.tsx
+1
-1
CurrencySearchModal.tsx
src/components/SearchModal/CurrencySearchModal.tsx
+1
-1
ImportList.tsx
src/components/SearchModal/ImportList.tsx
+1
-1
ImportRow.tsx
src/components/SearchModal/ImportRow.tsx
+1
-1
ImportToken.tsx
src/components/SearchModal/ImportToken.tsx
+0
-1
Manage.tsx
src/components/SearchModal/Manage.tsx
+1
-1
ManageLists.tsx
src/components/SearchModal/ManageLists.tsx
+1
-1
ManageTokens.tsx
src/components/SearchModal/ManageTokens.tsx
+1
-1
SortButton.tsx
src/components/SearchModal/SortButton.tsx
+0
-1
index.tsx
src/components/Settings/index.tsx
+1
-1
index.tsx
src/components/Slider/index.tsx
+1
-1
index.tsx
src/components/SwitchLocaleLink/index.tsx
+1
-1
index.tsx
src/components/ThemeColorPalette/index.tsx
+0
-1
ListToggle.tsx
src/components/Toggle/ListToggle.tsx
+0
-1
index.tsx
src/components/Toggle/index.tsx
+1
-1
index.tsx
src/components/TokenWarningModal/index.tsx
+0
-1
index.tsx
src/components/Tooltip/index.tsx
+1
-1
index.tsx
src/components/TransactionConfirmationModal/index.tsx
+1
-1
index.tsx
src/components/TransactionSettings/index.tsx
+1
-1
PendingView.tsx
src/components/WalletModal/PendingView.tsx
+0
-1
index.tsx
src/components/WalletModal/index.tsx
+1
-1
index.tsx
src/components/Web3ReactManager/index.tsx
+1
-1
index.tsx
src/components/Web3Status/index.tsx
+1
-1
AddressClaimModal.tsx
src/components/claim/AddressClaimModal.tsx
+1
-1
ClaimModal.tsx
src/components/claim/ClaimModal.tsx
+1
-1
ClaimRewardModal.tsx
src/components/earn/ClaimRewardModal.tsx
+1
-1
PoolCard.tsx
src/components/earn/PoolCard.tsx
+0
-1
StakingModal.tsx
src/components/earn/StakingModal.tsx
+1
-1
UnstakingModal.tsx
src/components/earn/UnstakingModal.tsx
+1
-1
AdvancedSwapDetails.tsx
src/components/swap/AdvancedSwapDetails.tsx
+1
-1
AdvancedSwapDetailsDropdown.tsx
src/components/swap/AdvancedSwapDetailsDropdown.tsx
+0
-1
BetterTradeLink.tsx
src/components/swap/BetterTradeLink.tsx
+1
-1
ConfirmSwapModal.tsx
src/components/swap/ConfirmSwapModal.tsx
+1
-1
FormattedPriceImpact.tsx
src/components/swap/FormattedPriceImpact.tsx
+0
-1
SwapHeader.tsx
src/components/swap/SwapHeader.tsx
+0
-1
SwapModalFooter.tsx
src/components/swap/SwapModalFooter.tsx
+1
-1
SwapModalHeader.tsx
src/components/swap/SwapModalHeader.tsx
+1
-1
SwapRoute.tsx
src/components/swap/SwapRoute.tsx
+1
-1
TradePrice.tsx
src/components/swap/TradePrice.tsx
+1
-1
UnsupportedCurrencyFooter.tsx
src/components/swap/UnsupportedCurrencyFooter.tsx
+1
-1
styleds.tsx
src/components/swap/styleds.tsx
+1
-1
DelegateModal.tsx
src/components/vote/DelegateModal.tsx
+1
-1
VoteModal.tsx
src/components/vote/VoteModal.tsx
+1
-1
i18n.tsx
src/i18n.tsx
+1
-1
index.tsx
src/index.tsx
+1
-1
PoolPriceBar.tsx
src/pages/AddLiquidity/PoolPriceBar.tsx
+1
-1
Review.tsx
src/pages/AddLiquidity/Review.tsx
+0
-1
index.tsx
src/pages/AddLiquidity/index.tsx
+1
-1
redirects.tsx
src/pages/AddLiquidity/redirects.tsx
+0
-1
ConfirmAddModalBottom.tsx
src/pages/AddLiquidityV2/ConfirmAddModalBottom.tsx
+0
-1
PoolPriceBar.tsx
src/pages/AddLiquidityV2/PoolPriceBar.tsx
+1
-1
index.tsx
src/pages/AddLiquidityV2/index.tsx
+1
-1
redirects.tsx
src/pages/AddLiquidityV2/redirects.tsx
+0
-1
App.tsx
src/pages/App.tsx
+0
-1
Countdown.tsx
src/pages/Earn/Countdown.tsx
+1
-1
Manage.tsx
src/pages/Earn/Manage.tsx
+1
-1
index.tsx
src/pages/Earn/index.tsx
+0
-1
MigrateV2Pair.tsx
src/pages/MigrateV2/MigrateV2Pair.tsx
+1
-1
index.tsx
src/pages/MigrateV2/index.tsx
+1
-1
CTACards.tsx
src/pages/Pool/CTACards.tsx
+0
-1
PositionPage.tsx
src/pages/Pool/PositionPage.tsx
+1
-1
index.tsx
src/pages/Pool/index.tsx
+1
-1
v2.tsx
src/pages/Pool/v2.tsx
+1
-1
index.tsx
src/pages/PoolFinder/index.tsx
+1
-1
V3.tsx
src/pages/RemoveLiquidity/V3.tsx
+1
-1
index.tsx
src/pages/RemoveLiquidity/index.tsx
+1
-1
index.tsx
src/pages/Swap/index.tsx
+1
-1
redirects.tsx
src/pages/Swap/redirects.tsx
+1
-1
VotePage.tsx
src/pages/Vote/VotePage.tsx
+1
-1
index.tsx
src/pages/Vote/index.tsx
+0
-1
No files found.
.eslintrc.json
View file @
9b1ef415
...
...
@@ -27,6 +27,7 @@
"@typescript-eslint/no-explicit-any"
:
"off"
,
"@typescript-eslint/ban-ts-comment"
:
"off"
,
"@typescript-eslint/ban-ts-ignore"
:
"off"
,
"@typescript-eslint/explicit-module-boundary-types"
:
"off"
"@typescript-eslint/explicit-module-boundary-types"
:
"off"
,
"react/react-in-jsx-scope"
:
"off"
}
}
src/components/AccountDetails/Transaction.tsx
View file @
9b1ef415
import
React
from
'
react
'
import
styled
from
'
styled-components/macro
'
import
{
CheckCircle
,
Triangle
}
from
'
react-feather
'
...
...
src/components/AccountDetails/index.tsx
View file @
9b1ef415
import
React
,
{
useCallback
,
useContext
}
from
'
react
'
import
{
useCallback
,
useContext
}
from
'
react
'
import
styled
,
{
ThemeContext
}
from
'
styled-components
'
import
{
SUPPORTED_WALLETS
}
from
'
../../constants/wallet
'
import
{
useActiveWeb3React
}
from
'
../../hooks/web3
'
...
...
src/components/AddressInputPanel/index.tsx
View file @
9b1ef415
import
React
,
{
useContext
,
useCallback
}
from
'
react
'
import
{
useContext
,
useCallback
}
from
'
react
'
import
styled
,
{
ThemeContext
}
from
'
styled-components
'
import
useENS
from
'
../../hooks/useENS
'
import
{
useActiveWeb3React
}
from
'
../../hooks/web3
'
...
...
src/components/Badge/RangeBadge.tsx
View file @
9b1ef415
import
React
from
'
react
'
import
Badge
,
{
BadgeVariant
}
from
'
components/Badge
'
import
styled
from
'
styled-components/macro
'
...
...
src/components/Blocklist/index.tsx
View file @
9b1ef415
import
React
,
{
ReactNode
,
useMemo
}
from
'
react
'
import
{
ReactNode
,
useMemo
}
from
'
react
'
import
{
useActiveWeb3React
}
from
'
../../hooks/web3
'
import
{
Trans
}
from
'
@lingui/macro
'
...
...
src/components/Button/index.tsx
View file @
9b1ef415
import
React
from
'
react
'
import
styled
from
'
styled-components/macro
'
import
{
darken
}
from
'
polished
'
...
...
src/components/Confetti/index.tsx
View file @
9b1ef415
import
React
from
'
react
'
import
ReactConfetti
from
'
react-confetti
'
import
{
useWindowSize
}
from
'
../../hooks/useWindowSize
'
...
...
src/components/CurrencyInputPanel/FiatValue.tsx
View file @
9b1ef415
import
{
Currency
,
CurrencyAmount
,
Percent
}
from
'
@uniswap/sdk-core
'
import
React
,
{
useMemo
}
from
'
react
'
import
{
useMemo
}
from
'
react
'
import
useTheme
from
'
../../hooks/useTheme
'
import
{
TYPE
}
from
'
../../theme
'
import
{
warningSeverity
}
from
'
../../utils/prices
'
...
...
src/components/CurrencyInputPanel/index.tsx
View file @
9b1ef415
import
{
Pair
}
from
'
@uniswap/v2-sdk
'
import
{
Currency
,
CurrencyAmount
,
Percent
,
Token
}
from
'
@uniswap/sdk-core
'
import
React
,
{
useState
,
useCallback
,
ReactNode
}
from
'
react
'
import
{
useState
,
useCallback
,
ReactNode
}
from
'
react
'
import
styled
from
'
styled-components/macro
'
import
{
darken
}
from
'
polished
'
import
{
useCurrencyBalance
}
from
'
../../state/wallet/hooks
'
...
...
src/components/DoubleLogo/index.tsx
View file @
9b1ef415
import
{
Currency
}
from
'
@uniswap/sdk-core
'
import
React
from
'
react
'
import
styled
from
'
styled-components/macro
'
import
CurrencyLogo
from
'
../CurrencyLogo
'
...
...
src/components/FeeSelector/index.tsx
View file @
9b1ef415
import
React
from
'
react
'
import
{
FeeAmount
}
from
'
@uniswap/v3-sdk
'
import
{
Trans
}
from
'
@lingui/macro
'
import
{
AutoColumn
}
from
'
components/Column
'
...
...
src/components/FormattedCurrencyAmount/index.tsx
View file @
9b1ef415
import
JSBI
from
'
jsbi
'
import
React
from
'
react
'
import
{
Currency
,
CurrencyAmount
,
Fraction
}
from
'
@uniswap/sdk-core
'
const
CURRENCY_AMOUNT_MIN
=
new
Fraction
(
JSBI
.
BigInt
(
1
),
JSBI
.
BigInt
(
1000000
))
...
...
src/components/Header/Polling.tsx
View file @
9b1ef415
import
React
,
{
useEffect
,
useState
}
from
'
react
'
import
{
useEffect
,
useState
}
from
'
react
'
import
styled
,
{
keyframes
}
from
'
styled-components
'
import
{
useActiveWeb3React
}
from
'
../../hooks/web3
'
...
...
src/components/Header/URLWarning.tsx
View file @
9b1ef415
import
React
from
'
react
'
import
styled
from
'
styled-components/macro
'
import
{
AlertTriangle
,
X
}
from
'
react-feather
'
...
...
src/components/Header/UniBalanceContent.tsx
View file @
9b1ef415
import
{
CurrencyAmount
,
Token
}
from
'
@uniswap/sdk-core
'
import
React
,
{
useMemo
}
from
'
react
'
import
{
useMemo
}
from
'
react
'
import
{
X
}
from
'
react-feather
'
import
styled
from
'
styled-components/macro
'
import
tokenLogo
from
'
../../assets/images/token-logo.png
'
...
...
src/components/Header/index.tsx
View file @
9b1ef415
import
{
Trans
}
from
'
@lingui/macro
'
import
useScrollPosition
from
'
@react-hook/window-scroll
'
import
{
darken
}
from
'
polished
'
import
React
,
{
useState
}
from
'
react
'
import
{
useState
}
from
'
react
'
import
{
Moon
,
Sun
}
from
'
react-feather
'
import
{
NavLink
}
from
'
react-router-dom
'
import
{
Text
}
from
'
rebass
'
...
...
src/components/HoverInlineText/index.tsx
View file @
9b1ef415
import
Tooltip
from
'
components/Tooltip
'
import
React
,
{
useState
}
from
'
react
'
import
{
useState
}
from
'
react
'
import
styled
from
'
styled-components/macro
'
const
TextWrapper
=
styled
.
span
<
{
margin
:
boolean
;
link
?:
boolean
;
fontSize
?:
string
;
adjustSize
?:
boolean
}
>
`
...
...
src/components/Identicon/index.tsx
View file @
9b1ef415
import
React
,
{
useEffect
,
useRef
}
from
'
react
'
import
{
useEffect
,
useRef
}
from
'
react
'
import
styled
from
'
styled-components/macro
'
...
...
src/components/InputStepCounter/InputStepCounter.tsx
View file @
9b1ef415
import
React
,
{
useState
,
useCallback
,
useEffect
,
ReactNode
}
from
'
react
'
import
{
useState
,
useCallback
,
useEffect
,
ReactNode
}
from
'
react
'
import
{
LightCard
}
from
'
components/Card
'
import
{
RowBetween
}
from
'
components/Row
'
import
{
Input
as
NumericalInput
}
from
'
../NumericalInput
'
...
...
src/components/Loader/index.tsx
View file @
9b1ef415
import
React
from
'
react
'
import
styled
,
{
keyframes
}
from
'
styled-components
'
const
rotate
=
keyframes
`
...
...
src/components/Logo/index.tsx
View file @
9b1ef415
import
React
,
{
useState
}
from
'
react
'
import
{
useState
}
from
'
react
'
import
{
Slash
}
from
'
react-feather
'
import
{
ImageProps
}
from
'
rebass
'
import
useTheme
from
'
../../hooks/useTheme
'
...
...
src/components/ModalViews/index.tsx
View file @
9b1ef415
import
React
,
{
useContext
}
from
'
react
'
import
{
useContext
}
from
'
react
'
import
{
useActiveWeb3React
}
from
'
../../hooks/web3
'
import
{
ExplorerDataType
,
getExplorerLink
}
from
'
../../utils/getExplorerLink
'
...
...
src/components/NavigationTabs/index.tsx
View file @
9b1ef415
import
React
from
'
react
'
import
styled
from
'
styled-components/macro
'
import
{
darken
}
from
'
polished
'
import
{
Trans
}
from
'
@lingui/macro
'
...
...
src/components/Popups/ClaimPopup.tsx
View file @
9b1ef415
import
{
Trans
}
from
'
@lingui/macro
'
import
{
CurrencyAmount
,
Token
}
from
'
@uniswap/sdk-core
'
import
React
,
{
useCallback
,
useEffect
}
from
'
react
'
import
{
useCallback
,
useEffect
}
from
'
react
'
import
ReactGA
from
'
react-ga
'
import
{
Heart
,
X
}
from
'
react-feather
'
import
styled
,
{
keyframes
}
from
'
styled-components
'
...
...
src/components/Popups/PopupItem.tsx
View file @
9b1ef415
import
React
,
{
useCallback
,
useContext
,
useEffect
}
from
'
react
'
import
{
useCallback
,
useContext
,
useEffect
}
from
'
react
'
import
{
X
}
from
'
react-feather
'
import
{
useSpring
}
from
'
react-spring/web
'
import
styled
,
{
ThemeContext
}
from
'
styled-components
'
...
...
src/components/Popups/TransactionPopup.tsx
View file @
9b1ef415
import
React
,
{
useContext
}
from
'
react
'
import
{
useContext
}
from
'
react
'
import
{
AlertCircle
,
CheckCircle
}
from
'
react-feather
'
import
styled
,
{
ThemeContext
}
from
'
styled-components
'
import
{
useActiveWeb3React
}
from
'
../../hooks/web3
'
...
...
src/components/Popups/index.tsx
View file @
9b1ef415
import
React
from
'
react
'
import
styled
from
'
styled-components/macro
'
import
{
useActivePopups
}
from
'
../../state/application/hooks
'
import
{
AutoColumn
}
from
'
../Column
'
...
...
src/components/PositionCard/Sushi.tsx
View file @
9b1ef415
import
React
from
'
react
'
import
{
Token
}
from
'
@uniswap/sdk-core
'
import
{
Link
}
from
'
react-router-dom
'
import
{
Text
}
from
'
rebass
'
...
...
src/components/PositionCard/V2.tsx
View file @
9b1ef415
import
JSBI
from
'
jsbi
'
import
React
,
{
useState
}
from
'
react
'
import
{
useState
}
from
'
react
'
import
{
Percent
,
CurrencyAmount
,
Token
}
from
'
@uniswap/sdk-core
'
import
{
Pair
}
from
'
@uniswap/v2-sdk
'
import
{
ChevronDown
,
ChevronUp
}
from
'
react-feather
'
...
...
src/components/PositionCard/index.tsx
View file @
9b1ef415
...
...
@@ -2,7 +2,7 @@ import JSBI from 'jsbi'
import
{
Percent
,
CurrencyAmount
,
Token
}
from
'
@uniswap/sdk-core
'
import
{
Pair
}
from
'
@uniswap/v2-sdk
'
import
{
darken
}
from
'
polished
'
import
React
,
{
useState
}
from
'
react
'
import
{
useState
}
from
'
react
'
import
{
ChevronDown
,
ChevronUp
}
from
'
react-feather
'
import
{
Link
}
from
'
react-router-dom
'
import
{
Text
}
from
'
rebass
'
...
...
src/components/PositionListItem/index.tsx
View file @
9b1ef415
import
React
,
{
useMemo
}
from
'
react
'
import
{
useMemo
}
from
'
react
'
import
{
Position
}
from
'
@uniswap/v3-sdk
'
import
Badge
from
'
components/Badge
'
import
DoubleCurrencyLogo
from
'
components/DoubleLogo
'
...
...
src/components/PositionPreview/index.tsx
View file @
9b1ef415
import
React
,
{
useState
,
useCallback
,
useContext
,
ReactNode
}
from
'
react
'
import
{
useState
,
useCallback
,
useContext
,
ReactNode
}
from
'
react
'
import
{
Position
}
from
'
@uniswap/v3-sdk
'
import
{
LightCard
}
from
'
components/Card
'
import
{
AutoColumn
}
from
'
components/Column
'
...
...
src/components/ProgressSteps/index.tsx
View file @
9b1ef415
import
React
,
{
useContext
}
from
'
react
'
import
{
useContext
}
from
'
react
'
import
styled
from
'
styled-components/macro
'
import
{
AutoColumn
}
from
'
../Column
'
import
{
ThemeContext
}
from
'
styled-components
'
...
...
src/components/QuestionHelper/index.tsx
View file @
9b1ef415
import
React
,
{
ReactNode
,
useCallback
,
useState
}
from
'
react
'
import
{
ReactNode
,
useCallback
,
useState
}
from
'
react
'
import
styled
from
'
styled-components/macro
'
import
Tooltip
from
'
../Tooltip
'
...
...
src/components/RangeSelector/index.tsx
View file @
9b1ef415
import
{
Trans
}
from
'
@lingui/macro
'
import
React
from
'
react
'
import
{
Currency
,
Price
,
Token
}
from
'
@uniswap/sdk-core
'
import
StepCounter
from
'
components/InputStepCounter/InputStepCounter
'
import
{
RowBetween
}
from
'
components/Row
'
...
...
src/components/RateToggle/index.tsx
View file @
9b1ef415
import
{
Trans
}
from
'
@lingui/macro
'
import
React
from
'
react
'
import
{
Currency
}
from
'
@uniswap/sdk-core
'
import
{
ToggleElement
,
ToggleWrapper
}
from
'
components/Toggle/MultiToggle
'
...
...
src/components/SearchModal/CommonBases.tsx
View file @
9b1ef415
import
{
Trans
}
from
'
@lingui/macro
'
import
React
from
'
react
'
import
{
Text
}
from
'
rebass
'
import
{
Currency
}
from
'
@uniswap/sdk-core
'
import
styled
from
'
styled-components/macro
'
...
...
src/components/SearchModal/CurrencyList.tsx
View file @
9b1ef415
import
{
Trans
}
from
'
@lingui/macro
'
import
{
Currency
,
CurrencyAmount
,
Token
}
from
'
@uniswap/sdk-core
'
import
React
,
{
CSSProperties
,
MutableRefObject
,
useCallback
,
useMemo
}
from
'
react
'
import
{
CSSProperties
,
MutableRefObject
,
useCallback
,
useMemo
}
from
'
react
'
import
{
FixedSizeList
}
from
'
react-window
'
import
{
Text
}
from
'
rebass
'
import
styled
from
'
styled-components/macro
'
...
...
src/components/SearchModal/CurrencySearch.tsx
View file @
9b1ef415
import
{
Currency
,
Token
}
from
'
@uniswap/sdk-core
'
import
React
,
{
KeyboardEvent
,
RefObject
,
useCallback
,
useEffect
,
useMemo
,
useRef
,
useState
}
from
'
react
'
import
{
KeyboardEvent
,
RefObject
,
useCallback
,
useEffect
,
useMemo
,
useRef
,
useState
}
from
'
react
'
import
ReactGA
from
'
react-ga
'
import
{
t
,
Trans
}
from
'
@lingui/macro
'
import
{
FixedSizeList
}
from
'
react-window
'
...
...
src/components/SearchModal/CurrencySearchModal.tsx
View file @
9b1ef415
import
{
Currency
,
Token
}
from
'
@uniswap/sdk-core
'
import
React
,
{
useCallback
,
useEffect
,
useState
}
from
'
react
'
import
{
useCallback
,
useEffect
,
useState
}
from
'
react
'
import
useLast
from
'
../../hooks/useLast
'
import
{
WrappedTokenInfo
}
from
'
../../state/lists/wrappedTokenInfo
'
import
Modal
from
'
../Modal
'
...
...
src/components/SearchModal/ImportList.tsx
View file @
9b1ef415
import
React
,
{
useState
,
useCallback
}
from
'
react
'
import
{
useState
,
useCallback
}
from
'
react
'
import
styled
from
'
styled-components/macro
'
import
ReactGA
from
'
react-ga
'
import
{
TYPE
,
CloseIcon
}
from
'
theme
'
...
...
src/components/SearchModal/ImportRow.tsx
View file @
9b1ef415
import
React
,
{
CSSProperties
}
from
'
react
'
import
{
CSSProperties
}
from
'
react
'
import
{
Token
}
from
'
@uniswap/sdk-core
'
import
{
AutoRow
,
RowFixed
}
from
'
components/Row
'
import
{
AutoColumn
}
from
'
components/Column
'
...
...
src/components/SearchModal/ImportToken.tsx
View file @
9b1ef415
import
{
TokenList
}
from
'
@uniswap/token-lists/dist/types
'
import
React
from
'
react
'
import
{
Token
,
Currency
}
from
'
@uniswap/sdk-core
'
import
styled
from
'
styled-components/macro
'
import
{
TYPE
,
CloseIcon
}
from
'
theme
'
...
...
src/components/SearchModal/Manage.tsx
View file @
9b1ef415
import
{
Trans
}
from
'
@lingui/macro
'
import
React
,
{
useState
}
from
'
react
'
import
{
useState
}
from
'
react
'
import
{
PaddedColumn
,
Separator
}
from
'
./styleds
'
import
{
RowBetween
}
from
'
components/Row
'
import
{
ArrowLeft
}
from
'
react-feather
'
...
...
src/components/SearchModal/ManageLists.tsx
View file @
9b1ef415
import
React
,
{
memo
,
useCallback
,
useMemo
,
useRef
,
useState
,
useEffect
}
from
'
react
'
import
{
memo
,
useCallback
,
useMemo
,
useRef
,
useState
,
useEffect
}
from
'
react
'
import
{
Settings
,
CheckCircle
}
from
'
react-feather
'
import
ReactGA
from
'
react-ga
'
import
{
useAppDispatch
,
useAppSelector
}
from
'
state/hooks
'
...
...
src/components/SearchModal/ManageTokens.tsx
View file @
9b1ef415
import
React
,
{
useRef
,
RefObject
,
useCallback
,
useState
,
useMemo
}
from
'
react
'
import
{
useRef
,
RefObject
,
useCallback
,
useState
,
useMemo
}
from
'
react
'
import
Column
from
'
components/Column
'
import
{
ExplorerDataType
,
getExplorerLink
}
from
'
../../utils/getExplorerLink
'
import
{
PaddedColumn
,
Separator
,
SearchInput
}
from
'
./styleds
'
...
...
src/components/SearchModal/SortButton.tsx
View file @
9b1ef415
import
React
from
'
react
'
import
{
Text
}
from
'
rebass
'
import
styled
from
'
styled-components/macro
'
import
{
RowFixed
}
from
'
../Row
'
...
...
src/components/Settings/index.tsx
View file @
9b1ef415
import
{
t
,
Trans
}
from
'
@lingui/macro
'
import
React
,
{
useContext
,
useRef
,
useState
}
from
'
react
'
import
{
useContext
,
useRef
,
useState
}
from
'
react
'
import
{
Settings
,
X
}
from
'
react-feather
'
import
ReactGA
from
'
react-ga
'
import
{
Text
}
from
'
rebass
'
...
...
src/components/Slider/index.tsx
View file @
9b1ef415
import
React
,
{
useCallback
}
from
'
react
'
import
{
useCallback
}
from
'
react
'
import
styled
from
'
styled-components/macro
'
const
StyledRangeInput
=
styled
.
input
<
{
size
:
number
}
>
`
...
...
src/components/SwitchLocaleLink/index.tsx
View file @
9b1ef415
import
{
Trans
}
from
'
@lingui/macro
'
import
React
,
{
useMemo
}
from
'
react
'
import
{
useMemo
}
from
'
react
'
import
ReactGA
from
'
react-ga
'
import
{
useLocation
}
from
'
react-router
'
import
styled
from
'
styled-components/macro
'
...
...
src/components/ThemeColorPalette/index.tsx
View file @
9b1ef415
import
{
readableColor
}
from
'
polished
'
import
React
from
'
react
'
import
styled
from
'
styled-components/macro
'
import
{
colors
}
from
'
theme
'
...
...
src/components/Toggle/ListToggle.tsx
View file @
9b1ef415
import
{
Trans
}
from
'
@lingui/macro
'
import
React
from
'
react
'
import
styled
from
'
styled-components/macro
'
import
{
TYPE
}
from
'
../../theme
'
...
...
src/components/Toggle/index.tsx
View file @
9b1ef415
import
{
Trans
}
from
'
@lingui/macro
'
import
{
darken
}
from
'
polished
'
import
React
,
{
ReactNode
}
from
'
react
'
import
{
ReactNode
}
from
'
react
'
import
styled
from
'
styled-components/macro
'
const
ToggleElement
=
styled
.
span
<
{
isActive
?:
boolean
;
isOnSwitch
?:
boolean
}
>
`
...
...
src/components/TokenWarningModal/index.tsx
View file @
9b1ef415
import
{
Token
}
from
'
@uniswap/sdk-core
'
import
React
from
'
react
'
import
Modal
from
'
../Modal
'
import
{
ImportToken
}
from
'
components/SearchModal/ImportToken
'
...
...
src/components/Tooltip/index.tsx
View file @
9b1ef415
import
React
,
{
ReactNode
,
useCallback
,
useState
}
from
'
react
'
import
{
ReactNode
,
useCallback
,
useState
}
from
'
react
'
import
styled
from
'
styled-components/macro
'
import
Popover
,
{
PopoverProps
}
from
'
../Popover
'
...
...
src/components/TransactionConfirmationModal/index.tsx
View file @
9b1ef415
import
{
Currency
}
from
'
@uniswap/sdk-core
'
import
React
,
{
ReactNode
,
useContext
}
from
'
react
'
import
{
ReactNode
,
useContext
}
from
'
react
'
import
styled
,
{
ThemeContext
}
from
'
styled-components
'
import
{
getExplorerLink
,
ExplorerDataType
}
from
'
../../utils/getExplorerLink
'
import
Modal
from
'
../Modal
'
...
...
src/components/TransactionSettings/index.tsx
View file @
9b1ef415
import
{
t
,
Trans
}
from
'
@lingui/macro
'
import
React
,
{
useState
,
useContext
}
from
'
react
'
import
{
useState
,
useContext
}
from
'
react
'
import
{
Percent
}
from
'
@uniswap/sdk-core
'
import
styled
,
{
ThemeContext
}
from
'
styled-components
'
...
...
src/components/WalletModal/PendingView.tsx
View file @
9b1ef415
import
{
AbstractConnector
}
from
'
@web3-react/abstract-connector
'
import
React
from
'
react
'
import
styled
from
'
styled-components/macro
'
import
{
SUPPORTED_WALLETS
}
from
'
../../constants/wallet
'
import
Option
from
'
./Option
'
...
...
src/components/WalletModal/index.tsx
View file @
9b1ef415
...
...
@@ -2,7 +2,7 @@ import { AbstractConnector } from '@web3-react/abstract-connector'
import
{
UnsupportedChainIdError
,
useWeb3React
}
from
'
@web3-react/core
'
import
{
WalletConnectConnector
}
from
'
@web3-react/walletconnect-connector
'
import
{
AutoRow
}
from
'
components/Row
'
import
React
,
{
useEffect
,
useState
}
from
'
react
'
import
{
useEffect
,
useState
}
from
'
react
'
import
{
isMobile
}
from
'
react-device-detect
'
import
ReactGA
from
'
react-ga
'
import
styled
from
'
styled-components/macro
'
...
...
src/components/Web3ReactManager/index.tsx
View file @
9b1ef415
import
React
,
{
useState
,
useEffect
}
from
'
react
'
import
{
useState
,
useEffect
}
from
'
react
'
import
{
useWeb3React
}
from
'
@web3-react/core
'
import
styled
from
'
styled-components/macro
'
import
{
Trans
}
from
'
@lingui/macro
'
...
...
src/components/Web3Status/index.tsx
View file @
9b1ef415
import
{
AbstractConnector
}
from
'
@web3-react/abstract-connector
'
import
{
UnsupportedChainIdError
,
useWeb3React
}
from
'
@web3-react/core
'
import
{
darken
,
lighten
}
from
'
polished
'
import
React
,
{
useMemo
}
from
'
react
'
import
{
useMemo
}
from
'
react
'
import
{
Activity
}
from
'
react-feather
'
import
{
t
,
Trans
}
from
'
@lingui/macro
'
import
styled
,
{
css
}
from
'
styled-components
'
...
...
src/components/claim/AddressClaimModal.tsx
View file @
9b1ef415
import
React
,
{
useState
}
from
'
react
'
import
{
useState
}
from
'
react
'
import
{
ExplorerDataType
,
getExplorerLink
}
from
'
../../utils/getExplorerLink
'
import
Modal
from
'
../Modal
'
import
{
AutoColumn
,
ColumnCenter
}
from
'
../Column
'
...
...
src/components/claim/ClaimModal.tsx
View file @
9b1ef415
import
JSBI
from
'
jsbi
'
import
{
CurrencyAmount
,
Token
}
from
'
@uniswap/sdk-core
'
import
{
isAddress
}
from
'
ethers/lib/utils
'
import
React
,
{
useEffect
,
useState
}
from
'
react
'
import
{
useEffect
,
useState
}
from
'
react
'
import
{
Text
}
from
'
rebass
'
import
styled
from
'
styled-components/macro
'
import
Circle
from
'
../../assets/images/blue-loader.svg
'
...
...
src/components/earn/ClaimRewardModal.tsx
View file @
9b1ef415
import
React
,
{
useState
}
from
'
react
'
import
{
useState
}
from
'
react
'
import
Modal
from
'
../Modal
'
import
{
AutoColumn
}
from
'
../Column
'
import
styled
from
'
styled-components/macro
'
...
...
src/components/earn/PoolCard.tsx
View file @
9b1ef415
import
React
from
'
react
'
import
{
AutoColumn
}
from
'
../Column
'
import
{
RowBetween
}
from
'
../Row
'
import
styled
from
'
styled-components/macro
'
...
...
src/components/earn/StakingModal.tsx
View file @
9b1ef415
import
React
,
{
useState
,
useCallback
}
from
'
react
'
import
{
useState
,
useCallback
}
from
'
react
'
import
{
useV2LiquidityTokenPermit
}
from
'
../../hooks/useERC20Permit
'
import
useTransactionDeadline
from
'
../../hooks/useTransactionDeadline
'
import
{
formatCurrencyAmount
}
from
'
../../utils/formatCurrencyAmount
'
...
...
src/components/earn/UnstakingModal.tsx
View file @
9b1ef415
import
React
,
{
useState
}
from
'
react
'
import
{
useState
}
from
'
react
'
import
Modal
from
'
../Modal
'
import
{
AutoColumn
}
from
'
../Column
'
import
styled
from
'
styled-components/macro
'
...
...
src/components/swap/AdvancedSwapDetails.tsx
View file @
9b1ef415
...
...
@@ -2,7 +2,7 @@ import { Trans } from '@lingui/macro'
import
{
Percent
,
Currency
,
TradeType
}
from
'
@uniswap/sdk-core
'
import
{
Trade
as
V2Trade
}
from
'
@uniswap/v2-sdk
'
import
{
Trade
as
V3Trade
}
from
'
@uniswap/v3-sdk
'
import
React
,
{
useContext
,
useMemo
}
from
'
react
'
import
{
useContext
,
useMemo
}
from
'
react
'
import
{
ThemeContext
}
from
'
styled-components
'
import
{
TYPE
}
from
'
../../theme
'
import
{
computeRealizedLPFeePercent
}
from
'
../../utils/prices
'
...
...
src/components/swap/AdvancedSwapDetailsDropdown.tsx
View file @
9b1ef415
import
React
from
'
react
'
import
styled
from
'
styled-components/macro
'
import
{
useLastTruthy
}
from
'
../../hooks/useLast
'
import
{
AdvancedSwapDetails
,
AdvancedSwapDetailsProps
}
from
'
./AdvancedSwapDetails
'
...
...
src/components/swap/BetterTradeLink.tsx
View file @
9b1ef415
import
{
stringify
}
from
'
qs
'
import
React
,
{
useMemo
}
from
'
react
'
import
{
useMemo
}
from
'
react
'
import
{
useLocation
}
from
'
react-router
'
import
{
Link
}
from
'
react-router-dom
'
...
...
src/components/swap/ConfirmSwapModal.tsx
View file @
9b1ef415
...
...
@@ -2,7 +2,7 @@ import { Trans } from '@lingui/macro'
import
{
Currency
,
Percent
,
TradeType
}
from
'
@uniswap/sdk-core
'
import
{
Trade
as
V2Trade
}
from
'
@uniswap/v2-sdk
'
import
{
Trade
as
V3Trade
}
from
'
@uniswap/v3-sdk
'
import
React
,
{
ReactNode
,
useCallback
,
useMemo
}
from
'
react
'
import
{
ReactNode
,
useCallback
,
useMemo
}
from
'
react
'
import
TransactionConfirmationModal
,
{
ConfirmationModalContent
,
TransactionErrorContent
,
...
...
src/components/swap/FormattedPriceImpact.tsx
View file @
9b1ef415
import
{
Percent
}
from
'
@uniswap/sdk-core
'
import
React
from
'
react
'
import
{
warningSeverity
}
from
'
../../utils/prices
'
import
{
ErrorText
,
ErrorPill
}
from
'
./styleds
'
...
...
src/components/swap/SwapHeader.tsx
View file @
9b1ef415
import
{
Trans
}
from
'
@lingui/macro
'
import
React
from
'
react
'
import
styled
from
'
styled-components/macro
'
import
SettingsTab
from
'
../Settings
'
import
{
Percent
}
from
'
@uniswap/sdk-core
'
...
...
src/components/swap/SwapModalFooter.tsx
View file @
9b1ef415
...
...
@@ -3,7 +3,7 @@ import { Currency, TradeType } from '@uniswap/sdk-core'
import
{
Trade
as
V2Trade
}
from
'
@uniswap/v2-sdk
'
import
{
Trade
as
V3Trade
}
from
'
@uniswap/v3-sdk
'
import
React
,
{
ReactNode
}
from
'
react
'
import
{
ReactNode
}
from
'
react
'
import
{
Text
}
from
'
rebass
'
import
{
ButtonError
}
from
'
../Button
'
import
{
AutoRow
}
from
'
../Row
'
...
...
src/components/swap/SwapModalHeader.tsx
View file @
9b1ef415
import
{
Currency
,
Percent
,
TradeType
}
from
'
@uniswap/sdk-core
'
import
{
Trade
as
V2Trade
}
from
'
@uniswap/v2-sdk
'
import
{
Trade
as
V3Trade
}
from
'
@uniswap/v3-sdk
'
import
React
,
{
useContext
,
useState
}
from
'
react
'
import
{
useContext
,
useState
}
from
'
react
'
import
{
ArrowDown
,
AlertTriangle
}
from
'
react-feather
'
import
{
Text
}
from
'
rebass
'
import
styled
,
{
ThemeContext
}
from
'
styled-components
'
...
...
src/components/swap/SwapRoute.tsx
View file @
9b1ef415
import
{
Currency
,
TradeType
}
from
'
@uniswap/sdk-core
'
import
{
Trade
as
V2Trade
}
from
'
@uniswap/v2-sdk
'
import
{
Trade
as
V3Trade
,
FeeAmount
}
from
'
@uniswap/v3-sdk
'
import
React
,
{
Fragment
,
memo
,
useContext
}
from
'
react
'
import
{
Fragment
,
memo
,
useContext
}
from
'
react
'
import
{
ChevronRight
}
from
'
react-feather
'
import
{
Flex
}
from
'
rebass
'
import
{
ThemeContext
}
from
'
styled-components
'
...
...
src/components/swap/TradePrice.tsx
View file @
9b1ef415
import
React
,
{
useCallback
}
from
'
react
'
import
{
useCallback
}
from
'
react
'
import
{
Price
,
Currency
}
from
'
@uniswap/sdk-core
'
import
{
useContext
}
from
'
react
'
import
{
Text
}
from
'
rebass
'
...
...
src/components/swap/UnsupportedCurrencyFooter.tsx
View file @
9b1ef415
import
React
,
{
useState
}
from
'
react
'
import
{
useState
}
from
'
react
'
import
styled
from
'
styled-components/macro
'
import
{
TYPE
,
CloseIcon
,
ExternalLink
}
from
'
theme
'
import
{
ButtonEmpty
}
from
'
components/Button
'
...
...
src/components/swap/styleds.tsx
View file @
9b1ef415
import
{
transparentize
}
from
'
polished
'
import
React
,
{
ReactNode
}
from
'
react
'
import
{
ReactNode
}
from
'
react
'
import
{
Link
}
from
'
react-router-dom
'
import
{
AlertTriangle
}
from
'
react-feather
'
...
...
src/components/vote/DelegateModal.tsx
View file @
9b1ef415
import
React
,
{
ReactNode
,
useState
}
from
'
react
'
import
{
ReactNode
,
useState
}
from
'
react
'
import
{
UNI
}
from
'
../../constants/tokens
'
import
Modal
from
'
../Modal
'
...
...
src/components/vote/VoteModal.tsx
View file @
9b1ef415
import
React
,
{
useState
,
useContext
}
from
'
react
'
import
{
useState
,
useContext
}
from
'
react
'
import
{
useActiveWeb3React
}
from
'
../../hooks/web3
'
import
{
getExplorerLink
,
ExplorerDataType
}
from
'
../../utils/getExplorerLink
'
...
...
src/i18n.tsx
View file @
9b1ef415
import
React
,
{
useEffect
,
useState
}
from
'
react
'
import
{
useEffect
,
useState
}
from
'
react
'
import
{
i18n
}
from
'
@lingui/core
'
import
{
I18nProvider
}
from
'
@lingui/react
'
import
{
ReactNode
}
from
'
react
'
...
...
src/index.tsx
View file @
9b1ef415
import
'
inter-ui
'
import
'
@reach/dialog/styles.css
'
import
{
createWeb3ReactRoot
,
Web3ReactProvider
}
from
'
@web3-react/core
'
import
React
,
{
StrictMode
}
from
'
react
'
import
{
StrictMode
}
from
'
react
'
import
{
isMobile
}
from
'
react-device-detect
'
import
ReactDOM
from
'
react-dom
'
import
ReactGA
from
'
react-ga
'
...
...
src/pages/AddLiquidity/PoolPriceBar.tsx
View file @
9b1ef415
import
{
Currency
,
Percent
,
Price
}
from
'
@uniswap/sdk-core
'
import
React
,
{
useContext
}
from
'
react
'
import
{
useContext
}
from
'
react
'
import
{
Text
}
from
'
rebass
'
import
{
ThemeContext
}
from
'
styled-components
'
import
{
AutoColumn
}
from
'
../../components/Column
'
...
...
src/pages/AddLiquidity/Review.tsx
View file @
9b1ef415
import
React
from
'
react
'
import
{
Field
}
from
'
../../state/mint/v3/actions
'
import
{
AutoColumn
}
from
'
components/Column
'
import
Card
from
'
components/Card
'
...
...
src/pages/AddLiquidity/index.tsx
View file @
9b1ef415
import
React
,
{
useCallback
,
useContext
,
useMemo
,
useState
}
from
'
react
'
import
{
useCallback
,
useContext
,
useMemo
,
useState
}
from
'
react
'
import
{
TransactionResponse
}
from
'
@ethersproject/providers
'
import
{
Currency
,
CurrencyAmount
,
Percent
}
from
'
@uniswap/sdk-core
'
import
{
AlertTriangle
,
AlertCircle
}
from
'
react-feather
'
...
...
src/pages/AddLiquidity/redirects.tsx
View file @
9b1ef415
import
{
useActiveWeb3React
}
from
'
hooks/web3
'
import
React
from
'
react
'
import
{
Redirect
,
RouteComponentProps
}
from
'
react-router-dom
'
import
{
WETH9_EXTENDED
}
from
'
../../constants/tokens
'
import
AddLiquidity
from
'
./index
'
...
...
src/pages/AddLiquidityV2/ConfirmAddModalBottom.tsx
View file @
9b1ef415
import
{
Currency
,
CurrencyAmount
,
Fraction
,
Percent
}
from
'
@uniswap/sdk-core
'
import
React
from
'
react
'
import
{
Text
}
from
'
rebass
'
import
{
ButtonPrimary
}
from
'
../../components/Button
'
import
{
RowBetween
,
RowFixed
}
from
'
../../components/Row
'
...
...
src/pages/AddLiquidityV2/PoolPriceBar.tsx
View file @
9b1ef415
import
{
Currency
,
Percent
,
Price
}
from
'
@uniswap/sdk-core
'
import
React
,
{
useContext
}
from
'
react
'
import
{
useContext
}
from
'
react
'
import
{
Text
}
from
'
rebass
'
import
{
ThemeContext
}
from
'
styled-components
'
import
{
AutoColumn
}
from
'
../../components/Column
'
...
...
src/pages/AddLiquidityV2/index.tsx
View file @
9b1ef415
import
{
BigNumber
}
from
'
@ethersproject/bignumber
'
import
{
TransactionResponse
}
from
'
@ethersproject/providers
'
import
{
Currency
,
CurrencyAmount
,
Percent
}
from
'
@uniswap/sdk-core
'
import
React
,
{
useCallback
,
useContext
,
useState
}
from
'
react
'
import
{
useCallback
,
useContext
,
useState
}
from
'
react
'
import
{
Plus
}
from
'
react-feather
'
import
ReactGA
from
'
react-ga
'
import
{
RouteComponentProps
}
from
'
react-router-dom
'
...
...
src/pages/AddLiquidityV2/redirects.tsx
View file @
9b1ef415
import
React
from
'
react
'
import
{
Redirect
,
RouteComponentProps
}
from
'
react-router-dom
'
import
AddLiquidityV2
from
'
./index
'
...
...
src/pages/App.tsx
View file @
9b1ef415
import
React
from
'
react
'
import
{
Route
,
Switch
}
from
'
react-router-dom
'
import
styled
from
'
styled-components/macro
'
import
GoogleAnalyticsReporter
from
'
../components/analytics/GoogleAnalyticsReporter
'
...
...
src/pages/Earn/Countdown.tsx
View file @
9b1ef415
import
React
,
{
useEffect
,
useMemo
,
useState
}
from
'
react
'
import
{
useEffect
,
useMemo
,
useState
}
from
'
react
'
import
{
STAKING_GENESIS
,
REWARDS_DURATION_DAYS
}
from
'
../../state/stake/hooks
'
import
{
TYPE
}
from
'
../../theme
'
...
...
src/pages/Earn/Manage.tsx
View file @
9b1ef415
import
React
,
{
useCallback
,
useState
}
from
'
react
'
import
{
useCallback
,
useState
}
from
'
react
'
import
{
AutoColumn
}
from
'
../../components/Column
'
import
styled
from
'
styled-components/macro
'
import
{
Link
}
from
'
react-router-dom
'
...
...
src/pages/Earn/index.tsx
View file @
9b1ef415
import
JSBI
from
'
jsbi
'
import
React
from
'
react
'
import
{
AutoColumn
}
from
'
../../components/Column
'
import
styled
from
'
styled-components/macro
'
import
{
STAKING_REWARDS_INFO
,
useStakingInfo
}
from
'
../../state/stake/hooks
'
...
...
src/pages/MigrateV2/MigrateV2Pair.tsx
View file @
9b1ef415
import
JSBI
from
'
jsbi
'
import
React
,
{
useCallback
,
useMemo
,
useState
,
useEffect
,
ReactNode
}
from
'
react
'
import
{
useCallback
,
useMemo
,
useState
,
useEffect
,
ReactNode
}
from
'
react
'
import
{
Fraction
,
Percent
,
Price
,
Token
,
CurrencyAmount
}
from
'
@uniswap/sdk-core
'
import
{
Redirect
,
RouteComponentProps
}
from
'
react-router
'
import
{
Text
}
from
'
rebass
'
...
...
src/pages/MigrateV2/index.tsx
View file @
9b1ef415
import
React
,
{
ReactNode
,
useContext
,
useMemo
}
from
'
react
'
import
{
ReactNode
,
useContext
,
useMemo
}
from
'
react
'
import
{
Pair
}
from
'
@uniswap/v2-sdk
'
import
{
Token
}
from
'
@uniswap/sdk-core
'
import
{
ThemeContext
}
from
'
styled-components
'
...
...
src/pages/Pool/CTACards.tsx
View file @
9b1ef415
import
React
from
'
react
'
import
styled
from
'
styled-components/macro
'
import
{
TYPE
}
from
'
theme
'
import
{
Trans
}
from
'
@lingui/macro
'
...
...
src/pages/Pool/PositionPage.tsx
View file @
9b1ef415
import
React
,
{
useCallback
,
useMemo
,
useRef
,
useState
}
from
'
react
'
import
{
useCallback
,
useMemo
,
useRef
,
useState
}
from
'
react
'
import
{
NonfungiblePositionManager
,
Pool
,
Position
}
from
'
@uniswap/v3-sdk
'
import
{
PoolState
,
usePool
}
from
'
hooks/usePools
'
...
...
src/pages/Pool/index.tsx
View file @
9b1ef415
import
React
,
{
useContext
}
from
'
react
'
import
{
useContext
}
from
'
react
'
import
{
ButtonGray
,
ButtonOutlined
,
ButtonPrimary
}
from
'
components/Button
'
import
{
AutoColumn
}
from
'
components/Column
'
import
{
FlyoutAlignment
,
NewMenu
}
from
'
components/Menu
'
...
...
src/pages/Pool/v2.tsx
View file @
9b1ef415
import
React
,
{
useContext
,
useMemo
}
from
'
react
'
import
{
useContext
,
useMemo
}
from
'
react
'
import
styled
,
{
ThemeContext
}
from
'
styled-components
'
import
JSBI
from
'
jsbi
'
import
{
Link
}
from
'
react-router-dom
'
...
...
src/pages/PoolFinder/index.tsx
View file @
9b1ef415
import
{
Currency
,
CurrencyAmount
,
Token
}
from
'
@uniswap/sdk-core
'
import
JSBI
from
'
jsbi
'
import
React
,
{
useCallback
,
useEffect
,
useState
}
from
'
react
'
import
{
useCallback
,
useEffect
,
useState
}
from
'
react
'
import
{
Plus
}
from
'
react-feather
'
import
{
Text
}
from
'
rebass
'
import
{
ButtonDropdownLight
}
from
'
../../components/Button
'
...
...
src/pages/RemoveLiquidity/V3.tsx
View file @
9b1ef415
import
React
,
{
useCallback
,
useMemo
,
useState
}
from
'
react
'
import
{
useCallback
,
useMemo
,
useState
}
from
'
react
'
import
{
useV3PositionFromTokenId
}
from
'
hooks/useV3Positions
'
import
{
Redirect
,
RouteComponentProps
}
from
'
react-router-dom
'
import
{
WETH9_EXTENDED
}
from
'
../../constants/tokens
'
...
...
src/pages/RemoveLiquidity/index.tsx
View file @
9b1ef415
import
{
Contract
}
from
'
@ethersproject/contracts
'
import
{
TransactionResponse
}
from
'
@ethersproject/providers
'
import
{
Currency
,
Percent
}
from
'
@uniswap/sdk-core
'
import
React
,
{
useCallback
,
useContext
,
useMemo
,
useState
}
from
'
react
'
import
{
useCallback
,
useContext
,
useMemo
,
useState
}
from
'
react
'
import
{
ArrowDown
,
Plus
}
from
'
react-feather
'
import
ReactGA
from
'
react-ga
'
import
{
RouteComponentProps
}
from
'
react-router
'
...
...
src/pages/Swap/index.tsx
View file @
9b1ef415
...
...
@@ -6,7 +6,7 @@ import { AdvancedSwapDetails } from 'components/swap/AdvancedSwapDetails'
import
UnsupportedCurrencyFooter
from
'
components/swap/UnsupportedCurrencyFooter
'
import
{
MouseoverTooltip
,
MouseoverTooltipContent
}
from
'
components/Tooltip
'
import
JSBI
from
'
jsbi
'
import
React
,
{
useCallback
,
useContext
,
useEffect
,
useMemo
,
useState
}
from
'
react
'
import
{
useCallback
,
useContext
,
useEffect
,
useMemo
,
useState
}
from
'
react
'
import
{
ArrowDown
,
ArrowLeft
,
CheckCircle
,
HelpCircle
,
Info
}
from
'
react-feather
'
import
ReactGA
from
'
react-ga
'
import
{
Link
,
RouteComponentProps
}
from
'
react-router-dom
'
...
...
src/pages/Swap/redirects.tsx
View file @
9b1ef415
import
React
,
{
useEffect
}
from
'
react
'
import
{
useEffect
}
from
'
react
'
import
{
Redirect
,
RouteComponentProps
}
from
'
react-router-dom
'
import
{
useAppDispatch
}
from
'
state/hooks
'
...
...
src/pages/Vote/VotePage.tsx
View file @
9b1ef415
...
...
@@ -3,7 +3,7 @@ import { BigNumber } from 'ethers'
import
useCurrentBlockTimestamp
from
'
hooks/useCurrentBlockTimestamp
'
import
JSBI
from
'
jsbi
'
import
{
DateTime
}
from
'
luxon
'
import
React
,
{
useState
}
from
'
react
'
import
{
useState
}
from
'
react
'
import
{
ArrowLeft
}
from
'
react-feather
'
import
ReactMarkdown
from
'
react-markdown
'
...
...
src/pages/Vote/index.tsx
View file @
9b1ef415
import
React
from
'
react
'
import
{
AutoColumn
}
from
'
../../components/Column
'
import
styled
from
'
styled-components/macro
'
import
{
SwitchLocaleLink
}
from
'
../../components/SwitchLocaleLink
'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment