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
d27c83b3
Unverified
Commit
d27c83b3
authored
May 13, 2021
by
Justin Domingue
Committed by
GitHub
May 13, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use styled-components/macro to display className in dev builds (#1541)
parent
b2f88965
Changes
82
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
82 changed files
with
668 additions
and
307 deletions
+668
-307
babel-plugin-macros.config.js
babel-plugin-macros.config.js
+8
-0
Copy.tsx
src/components/AccountDetails/Copy.tsx
+1
-1
Transaction.tsx
src/components/AccountDetails/Transaction.tsx
+1
-1
RangeBadge.tsx
src/components/Badge/RangeBadge.tsx
+1
-1
Button.stories.tsx
src/components/Button/Button.stories.tsx
+1
-1
index.tsx
src/components/Button/index.tsx
+1
-1
index.tsx
src/components/Card/index.tsx
+1
-1
index.tsx
src/components/Column/index.tsx
+1
-1
index.tsx
src/components/CurrencyInputPanel/index.tsx
+1
-1
index.tsx
src/components/CurrencyLogo/index.tsx
+1
-1
index.tsx
src/components/DoubleLogo/index.tsx
+1
-1
index.tsx
src/components/ErrorBoundary/index.tsx
+1
-1
index.tsx
src/components/FeeSelector/index.tsx
+1
-1
URLWarning.tsx
src/components/Header/URLWarning.tsx
+1
-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
LineChart.stories.tsx
src/components/LineChart/LineChart.stories.tsx
+1
-1
index.tsx
src/components/LineChart/index.tsx
+1
-1
index.tsx
src/components/ListLogo/index.tsx
+1
-1
Menu.stories.tsx
src/components/Menu/Menu.stories.tsx
+1
-1
index.tsx
src/components/NavigationTabs/index.tsx
+1
-1
index.tsx
src/components/NumericalInput/index.tsx
+1
-1
index.tsx
src/components/Popover/index.tsx
+1
-1
ListUpdatePopup.tsx
src/components/Popups/ListUpdatePopup.tsx
+1
-1
index.tsx
src/components/Popups/index.tsx
+1
-1
Sushi.tsx
src/components/PositionCard/Sushi.tsx
+1
-1
V2.tsx
src/components/PositionCard/V2.tsx
+1
-1
index.tsx
src/components/PositionCard/index.tsx
+1
-1
index.tsx
src/components/PositionList/index.tsx
+1
-1
index.tsx
src/components/PositionListItem/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/Row/index.tsx
+1
-1
CommonBases.tsx
src/components/SearchModal/CommonBases.tsx
+1
-1
CurrencyList.tsx
src/components/SearchModal/CurrencyList.tsx
+1
-1
CurrencySearch.tsx
src/components/SearchModal/CurrencySearch.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
+1
-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
+1
-1
styleds.tsx
src/components/SearchModal/styleds.tsx
+1
-1
index.tsx
src/components/Slider/index.tsx
+1
-1
index.tsx
src/components/ThemeColorPalette/index.tsx
+1
-1
ListToggle.tsx
src/components/Toggle/ListToggle.tsx
+1
-1
MultiToggle.stories.tsx
src/components/Toggle/MultiToggle.stories.tsx
+1
-1
MultiToggle.tsx
src/components/Toggle/MultiToggle.tsx
+1
-1
index.tsx
src/components/Toggle/index.tsx
+1
-1
index.tsx
src/components/Tooltip/index.tsx
+1
-1
Option.tsx
src/components/WalletModal/Option.tsx
+1
-1
PendingView.tsx
src/components/WalletModal/PendingView.tsx
+1
-1
index.tsx
src/components/WalletModal/index.tsx
+1
-1
index.tsx
src/components/Web3ReactManager/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
+1
-1
StakingModal.tsx
src/components/earn/StakingModal.tsx
+1
-1
UnstakingModal.tsx
src/components/earn/UnstakingModal.tsx
+1
-1
styled.ts
src/components/earn/styled.ts
+1
-1
AdvancedSwapDetailsDropdown.tsx
src/components/swap/AdvancedSwapDetailsDropdown.tsx
+1
-1
BetterTradeLink.tsx
src/components/swap/BetterTradeLink.tsx
+1
-1
SwapHeader.tsx
src/components/swap/SwapHeader.tsx
+1
-1
UnsupportedCurrencyFooter.tsx
src/components/swap/UnsupportedCurrencyFooter.tsx
+1
-1
DelegateModal.tsx
src/components/vote/DelegateModal.tsx
+1
-1
Review.tsx
src/pages/AddLiquidity/Review.tsx
+1
-1
styled.tsx
src/pages/AddLiquidity/styled.tsx
+1
-1
App.tsx
src/pages/App.tsx
+1
-1
AppBody.tsx
src/pages/AppBody.tsx
+1
-1
Manage.tsx
src/pages/Earn/Manage.tsx
+1
-1
index.tsx
src/pages/Earn/index.tsx
+1
-1
CTACards.tsx
src/pages/Pool/CTACards.tsx
+1
-1
PositionPage.tsx
src/pages/Pool/PositionPage.tsx
+1
-1
styled.ts
src/pages/RemoveLiquidity/styled.ts
+1
-1
VotePage.tsx
src/pages/Vote/VotePage.tsx
+1
-1
index.tsx
src/pages/Vote/index.tsx
+1
-1
styled.tsx
src/pages/styled.tsx
+1
-1
yarn.lock
yarn.lock
+580
-227
No files found.
babel-plugin-macros.config.js
0 → 100644
View file @
d27c83b3
const
isDev
=
process
.
env
.
NODE_ENV
!==
'
production
'
module
.
exports
=
{
styledComponents
:
{
fileName
:
isDev
,
displayName
:
isDev
,
},
}
src/components/AccountDetails/Copy.tsx
View file @
d27c83b3
import
React
from
'
react
'
import
React
from
'
react
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
useCopyClipboard
from
'
../../hooks/useCopyClipboard
'
import
useCopyClipboard
from
'
../../hooks/useCopyClipboard
'
import
{
LinkStyledButton
}
from
'
../../theme
'
import
{
LinkStyledButton
}
from
'
../../theme
'
...
...
src/components/AccountDetails/Transaction.tsx
View file @
d27c83b3
import
React
from
'
react
'
import
React
from
'
react
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
{
CheckCircle
,
Triangle
}
from
'
react-feather
'
import
{
CheckCircle
,
Triangle
}
from
'
react-feather
'
import
{
useActiveWeb3React
}
from
'
../../hooks
'
import
{
useActiveWeb3React
}
from
'
../../hooks
'
...
...
src/components/Badge/RangeBadge.tsx
View file @
d27c83b3
import
React
from
'
react
'
import
React
from
'
react
'
import
Badge
,
{
BadgeVariant
}
from
'
components/Badge
'
import
Badge
,
{
BadgeVariant
}
from
'
components/Badge
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
{
MouseoverTooltip
}
from
'
../../components/Tooltip
'
import
{
MouseoverTooltip
}
from
'
../../components/Tooltip
'
import
{
useTranslation
}
from
'
react-i18next
'
import
{
useTranslation
}
from
'
react-i18next
'
...
...
src/components/Button/Button.stories.tsx
View file @
d27c83b3
import
{
Story
}
from
'
@storybook/react/types-6-0
'
import
{
Story
}
from
'
@storybook/react/types-6-0
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
React
from
'
react
'
import
React
from
'
react
'
import
{
import
{
ButtonConfirmed
,
ButtonConfirmed
,
...
...
src/components/Button/index.tsx
View file @
d27c83b3
import
React
from
'
react
'
import
React
from
'
react
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
{
darken
}
from
'
polished
'
import
{
darken
}
from
'
polished
'
import
{
RowBetween
}
from
'
../Row
'
import
{
RowBetween
}
from
'
../Row
'
...
...
src/components/Card/index.tsx
View file @
d27c83b3
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
{
Box
}
from
'
rebass/styled-components
'
import
{
Box
}
from
'
rebass/styled-components
'
const
Card
=
styled
(
Box
)
<
{
width
?:
string
;
padding
?:
string
;
border
?:
string
;
borderRadius
?:
string
}
>
`
const
Card
=
styled
(
Box
)
<
{
width
?:
string
;
padding
?:
string
;
border
?:
string
;
borderRadius
?:
string
}
>
`
...
...
src/components/Column/index.tsx
View file @
d27c83b3
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
const
Column
=
styled
.
div
`
const
Column
=
styled
.
div
`
display: flex;
display: flex;
...
...
src/components/CurrencyInputPanel/index.tsx
View file @
d27c83b3
import
{
Pair
}
from
'
@uniswap/v2-sdk
'
import
{
Pair
}
from
'
@uniswap/v2-sdk
'
import
{
Currency
,
CurrencyAmount
,
Percent
,
Token
}
from
'
@uniswap/sdk-core
'
import
{
Currency
,
CurrencyAmount
,
Percent
,
Token
}
from
'
@uniswap/sdk-core
'
import
React
,
{
useState
,
useCallback
}
from
'
react
'
import
React
,
{
useState
,
useCallback
}
from
'
react
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
{
darken
}
from
'
polished
'
import
{
darken
}
from
'
polished
'
import
{
useCurrencyBalance
}
from
'
../../state/wallet/hooks
'
import
{
useCurrencyBalance
}
from
'
../../state/wallet/hooks
'
import
CurrencySearchModal
from
'
../SearchModal/CurrencySearchModal
'
import
CurrencySearchModal
from
'
../SearchModal/CurrencySearchModal
'
...
...
src/components/CurrencyLogo/index.tsx
View file @
d27c83b3
import
{
ChainId
,
Currency
}
from
'
@uniswap/sdk-core
'
import
{
ChainId
,
Currency
}
from
'
@uniswap/sdk-core
'
import
React
,
{
useMemo
}
from
'
react
'
import
React
,
{
useMemo
}
from
'
react
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
EthereumLogo
from
'
../../assets/images/ethereum-logo.png
'
import
EthereumLogo
from
'
../../assets/images/ethereum-logo.png
'
import
useHttpLocations
from
'
../../hooks/useHttpLocations
'
import
useHttpLocations
from
'
../../hooks/useHttpLocations
'
import
{
WrappedTokenInfo
}
from
'
../../state/lists/wrappedTokenInfo
'
import
{
WrappedTokenInfo
}
from
'
../../state/lists/wrappedTokenInfo
'
...
...
src/components/DoubleLogo/index.tsx
View file @
d27c83b3
import
{
Currency
}
from
'
@uniswap/sdk-core
'
import
{
Currency
}
from
'
@uniswap/sdk-core
'
import
React
from
'
react
'
import
React
from
'
react
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
CurrencyLogo
from
'
../CurrencyLogo
'
import
CurrencyLogo
from
'
../CurrencyLogo
'
const
Wrapper
=
styled
.
div
<
{
margin
:
boolean
;
sizeraw
:
number
}
>
`
const
Wrapper
=
styled
.
div
<
{
margin
:
boolean
;
sizeraw
:
number
}
>
`
...
...
src/components/ErrorBoundary/index.tsx
View file @
d27c83b3
...
@@ -2,7 +2,7 @@ import React, { ErrorInfo } from 'react'
...
@@ -2,7 +2,7 @@ import React, { ErrorInfo } from 'react'
import
store
,
{
AppState
}
from
'
../../state
'
import
store
,
{
AppState
}
from
'
../../state
'
import
{
ExternalLink
,
ThemedBackground
,
TYPE
}
from
'
../../theme
'
import
{
ExternalLink
,
ThemedBackground
,
TYPE
}
from
'
../../theme
'
import
{
AutoColumn
}
from
'
../Column
'
import
{
AutoColumn
}
from
'
../Column
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
ReactGA
from
'
react-ga
'
import
ReactGA
from
'
react-ga
'
import
{
getUserAgent
}
from
'
../../utils/getUserAgent
'
import
{
getUserAgent
}
from
'
../../utils/getUserAgent
'
import
{
AutoRow
}
from
'
../Row
'
import
{
AutoRow
}
from
'
../Row
'
...
...
src/components/FeeSelector/index.tsx
View file @
d27c83b3
...
@@ -6,7 +6,7 @@ import { DynamicSection } from 'pages/AddLiquidity/styled'
...
@@ -6,7 +6,7 @@ import { DynamicSection } from 'pages/AddLiquidity/styled'
import
{
TYPE
}
from
'
theme
'
import
{
TYPE
}
from
'
theme
'
import
{
RowBetween
}
from
'
components/Row
'
import
{
RowBetween
}
from
'
components/Row
'
import
{
ButtonRadioChecked
}
from
'
components/Button
'
import
{
ButtonRadioChecked
}
from
'
components/Button
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
const
ResponsiveText
=
styled
(
TYPE
.
label
)
`
const
ResponsiveText
=
styled
(
TYPE
.
label
)
`
${({
theme
})
=>
theme
.
mediaWidth
.
upToSmall
`
${({
theme
})
=>
theme
.
mediaWidth
.
upToSmall
`
...
...
src/components/Header/URLWarning.tsx
View file @
d27c83b3
import
React
from
'
react
'
import
React
from
'
react
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
{
AlertTriangle
,
X
}
from
'
react-feather
'
import
{
AlertTriangle
,
X
}
from
'
react-feather
'
import
{
useURLWarningToggle
,
useURLWarningVisible
}
from
'
../../state/user/hooks
'
import
{
useURLWarningToggle
,
useURLWarningVisible
}
from
'
../../state/user/hooks
'
...
...
src/components/Header/UniBalanceContent.tsx
View file @
d27c83b3
import
{
ChainId
,
CurrencyAmount
,
Token
}
from
'
@uniswap/sdk-core
'
import
{
ChainId
,
CurrencyAmount
,
Token
}
from
'
@uniswap/sdk-core
'
import
React
,
{
useMemo
}
from
'
react
'
import
React
,
{
useMemo
}
from
'
react
'
import
{
X
}
from
'
react-feather
'
import
{
X
}
from
'
react-feather
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
tokenLogo
from
'
../../assets/images/token-logo.png
'
import
tokenLogo
from
'
../../assets/images/token-logo.png
'
import
{
UNI
}
from
'
../../constants
'
import
{
UNI
}
from
'
../../constants
'
import
{
useTotalSupply
}
from
'
../../hooks/useTotalSupply
'
import
{
useTotalSupply
}
from
'
../../hooks/useTotalSupply
'
...
...
src/components/Header/index.tsx
View file @
d27c83b3
...
@@ -6,7 +6,7 @@ import { NavLink } from 'react-router-dom'
...
@@ -6,7 +6,7 @@ import { NavLink } from 'react-router-dom'
import
{
darken
}
from
'
polished
'
import
{
darken
}
from
'
polished
'
import
{
useTranslation
}
from
'
react-i18next
'
import
{
useTranslation
}
from
'
react-i18next
'
import
{
Moon
,
Sun
}
from
'
react-feather
'
import
{
Moon
,
Sun
}
from
'
react-feather
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
Logo
from
'
../../assets/svg/logo.svg
'
import
Logo
from
'
../../assets/svg/logo.svg
'
import
LogoDark
from
'
../../assets/svg/logo_white.svg
'
import
LogoDark
from
'
../../assets/svg/logo_white.svg
'
...
...
src/components/HoverInlineText/index.tsx
View file @
d27c83b3
import
Tooltip
from
'
components/Tooltip
'
import
Tooltip
from
'
components/Tooltip
'
import
React
,
{
useState
}
from
'
react
'
import
React
,
{
useState
}
from
'
react
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
const
TextWrapper
=
styled
.
span
<
{
margin
:
boolean
;
link
?:
boolean
;
fontSize
?:
string
;
adjustSize
?:
boolean
}
>
`
const
TextWrapper
=
styled
.
span
<
{
margin
:
boolean
;
link
?:
boolean
;
fontSize
?:
string
;
adjustSize
?:
boolean
}
>
`
cursor: auto;
cursor: auto;
...
...
src/components/Identicon/index.tsx
View file @
d27c83b3
import
React
,
{
useEffect
,
useRef
}
from
'
react
'
import
React
,
{
useEffect
,
useRef
}
from
'
react
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
{
useActiveWeb3React
}
from
'
../../hooks
'
import
{
useActiveWeb3React
}
from
'
../../hooks
'
import
Jazzicon
from
'
jazzicon
'
import
Jazzicon
from
'
jazzicon
'
...
...
src/components/LineChart/LineChart.stories.tsx
View file @
d27c83b3
import
{
Story
}
from
'
@storybook/react/types-6-0
'
import
{
Story
}
from
'
@storybook/react/types-6-0
'
import
React
from
'
react
'
import
React
from
'
react
'
// import Row, { RowFixed } from 'components/Row'
// import Row, { RowFixed } from 'components/Row'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
Component
,
{
LineChartProps
}
from
'
./
'
import
Component
,
{
LineChartProps
}
from
'
./
'
import
{
dummyData
}
from
'
./data
'
import
{
dummyData
}
from
'
./data
'
// import { AutoColumn } from 'components/Column'
// import { AutoColumn } from 'components/Column'
...
...
src/components/LineChart/index.tsx
View file @
d27c83b3
...
@@ -3,7 +3,7 @@ import { createChart, IChartApi } from 'lightweight-charts'
...
@@ -3,7 +3,7 @@ import { createChart, IChartApi } from 'lightweight-charts'
import
{
darken
}
from
'
polished
'
import
{
darken
}
from
'
polished
'
import
{
RowBetween
}
from
'
components/Row
'
import
{
RowBetween
}
from
'
components/Row
'
import
Card
from
'
../Card
'
import
Card
from
'
../Card
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
useTheme
from
'
hooks/useTheme
'
import
useTheme
from
'
hooks/useTheme
'
const
Wrapper
=
styled
(
Card
)
`
const
Wrapper
=
styled
(
Card
)
`
...
...
src/components/ListLogo/index.tsx
View file @
d27c83b3
import
React
from
'
react
'
import
React
from
'
react
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
useHttpLocations
from
'
../../hooks/useHttpLocations
'
import
useHttpLocations
from
'
../../hooks/useHttpLocations
'
import
Logo
from
'
../Logo
'
import
Logo
from
'
../Logo
'
...
...
src/components/Menu/Menu.stories.tsx
View file @
d27c83b3
import
{
Story
}
from
'
@storybook/react/types-6-0
'
import
{
Story
}
from
'
@storybook/react/types-6-0
'
import
React
from
'
react
'
import
React
from
'
react
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
Component
from
'
./index
'
import
Component
from
'
./index
'
const
Wrapper
=
styled
.
div
`
const
Wrapper
=
styled
.
div
`
...
...
src/components/NavigationTabs/index.tsx
View file @
d27c83b3
import
React
from
'
react
'
import
React
from
'
react
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
{
darken
}
from
'
polished
'
import
{
darken
}
from
'
polished
'
import
{
useTranslation
}
from
'
react-i18next
'
import
{
useTranslation
}
from
'
react-i18next
'
import
{
NavLink
,
Link
as
HistoryLink
}
from
'
react-router-dom
'
import
{
NavLink
,
Link
as
HistoryLink
}
from
'
react-router-dom
'
...
...
src/components/NumericalInput/index.tsx
View file @
d27c83b3
import
React
from
'
react
'
import
React
from
'
react
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
{
escapeRegExp
}
from
'
../../utils
'
import
{
escapeRegExp
}
from
'
../../utils
'
const
StyledInput
=
styled
.
input
<
{
error
?:
boolean
;
fontSize
?:
string
;
align
?:
string
}
>
`
const
StyledInput
=
styled
.
input
<
{
error
?:
boolean
;
fontSize
?:
string
;
align
?:
string
}
>
`
...
...
src/components/Popover/index.tsx
View file @
d27c83b3
...
@@ -2,7 +2,7 @@ import { Placement } from '@popperjs/core'
...
@@ -2,7 +2,7 @@ import { Placement } from '@popperjs/core'
import
{
transparentize
}
from
'
polished
'
import
{
transparentize
}
from
'
polished
'
import
React
,
{
useCallback
,
useState
}
from
'
react
'
import
React
,
{
useCallback
,
useState
}
from
'
react
'
import
{
usePopper
}
from
'
react-popper
'
import
{
usePopper
}
from
'
react-popper
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
useInterval
from
'
../../hooks/useInterval
'
import
useInterval
from
'
../../hooks/useInterval
'
import
Portal
from
'
@reach/portal
'
import
Portal
from
'
@reach/portal
'
...
...
src/components/Popups/ListUpdatePopup.tsx
View file @
d27c83b3
...
@@ -3,7 +3,7 @@ import React, { useCallback, useMemo } from 'react'
...
@@ -3,7 +3,7 @@ import React, { useCallback, useMemo } from 'react'
import
ReactGA
from
'
react-ga
'
import
ReactGA
from
'
react-ga
'
import
{
useDispatch
}
from
'
react-redux
'
import
{
useDispatch
}
from
'
react-redux
'
import
{
Text
}
from
'
rebass
'
import
{
Text
}
from
'
rebass
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
{
AppDispatch
}
from
'
../../state
'
import
{
AppDispatch
}
from
'
../../state
'
import
{
useRemovePopup
}
from
'
../../state/application/hooks
'
import
{
useRemovePopup
}
from
'
../../state/application/hooks
'
import
{
acceptListUpdate
}
from
'
../../state/lists/actions
'
import
{
acceptListUpdate
}
from
'
../../state/lists/actions
'
...
...
src/components/Popups/index.tsx
View file @
d27c83b3
import
React
from
'
react
'
import
React
from
'
react
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
{
useActivePopups
}
from
'
../../state/application/hooks
'
import
{
useActivePopups
}
from
'
../../state/application/hooks
'
import
{
AutoColumn
}
from
'
../Column
'
import
{
AutoColumn
}
from
'
../Column
'
import
PopupItem
from
'
./PopupItem
'
import
PopupItem
from
'
./PopupItem
'
...
...
src/components/PositionCard/Sushi.tsx
View file @
d27c83b3
...
@@ -2,7 +2,7 @@ import React from 'react'
...
@@ -2,7 +2,7 @@ import React from 'react'
import
{
Token
}
from
'
@uniswap/sdk-core
'
import
{
Token
}
from
'
@uniswap/sdk-core
'
import
{
Link
}
from
'
react-router-dom
'
import
{
Link
}
from
'
react-router-dom
'
import
{
Text
}
from
'
rebass
'
import
{
Text
}
from
'
rebass
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
{
unwrappedToken
}
from
'
../../utils/wrappedCurrency
'
import
{
unwrappedToken
}
from
'
../../utils/wrappedCurrency
'
import
{
ButtonEmpty
}
from
'
../Button
'
import
{
ButtonEmpty
}
from
'
../Button
'
...
...
src/components/PositionCard/V2.tsx
View file @
d27c83b3
...
@@ -5,7 +5,7 @@ import { Pair } from '@uniswap/v2-sdk'
...
@@ -5,7 +5,7 @@ import { Pair } from '@uniswap/v2-sdk'
import
{
ChevronDown
,
ChevronUp
}
from
'
react-feather
'
import
{
ChevronDown
,
ChevronUp
}
from
'
react-feather
'
import
{
Link
}
from
'
react-router-dom
'
import
{
Link
}
from
'
react-router-dom
'
import
{
Text
}
from
'
rebass
'
import
{
Text
}
from
'
rebass
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
{
useTotalSupply
}
from
'
../../hooks/useTotalSupply
'
import
{
useTotalSupply
}
from
'
../../hooks/useTotalSupply
'
import
{
useActiveWeb3React
}
from
'
../../hooks
'
import
{
useActiveWeb3React
}
from
'
../../hooks
'
...
...
src/components/PositionCard/index.tsx
View file @
d27c83b3
...
@@ -6,7 +6,7 @@ import React, { useState } from 'react'
...
@@ -6,7 +6,7 @@ import React, { useState } from 'react'
import
{
ChevronDown
,
ChevronUp
}
from
'
react-feather
'
import
{
ChevronDown
,
ChevronUp
}
from
'
react-feather
'
import
{
Link
}
from
'
react-router-dom
'
import
{
Link
}
from
'
react-router-dom
'
import
{
Text
}
from
'
rebass
'
import
{
Text
}
from
'
rebass
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
{
useTotalSupply
}
from
'
../../hooks/useTotalSupply
'
import
{
useTotalSupply
}
from
'
../../hooks/useTotalSupply
'
import
{
useActiveWeb3React
}
from
'
../../hooks
'
import
{
useActiveWeb3React
}
from
'
../../hooks
'
...
...
src/components/PositionList/index.tsx
View file @
d27c83b3
import
PositionListItem
from
'
components/PositionListItem
'
import
PositionListItem
from
'
components/PositionListItem
'
import
React
from
'
react
'
import
React
from
'
react
'
import
{
useTranslation
}
from
'
react-i18next
'
import
{
useTranslation
}
from
'
react-i18next
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
{
MEDIA_WIDTHS
}
from
'
theme
'
import
{
MEDIA_WIDTHS
}
from
'
theme
'
import
{
PositionDetails
}
from
'
types/position
'
import
{
PositionDetails
}
from
'
types/position
'
...
...
src/components/PositionListItem/index.tsx
View file @
d27c83b3
...
@@ -5,7 +5,7 @@ import DoubleCurrencyLogo from 'components/DoubleLogo'
...
@@ -5,7 +5,7 @@ import DoubleCurrencyLogo from 'components/DoubleLogo'
import
{
usePool
}
from
'
hooks/usePools
'
import
{
usePool
}
from
'
hooks/usePools
'
import
{
useToken
}
from
'
hooks/Tokens
'
import
{
useToken
}
from
'
hooks/Tokens
'
import
{
Link
}
from
'
react-router-dom
'
import
{
Link
}
from
'
react-router-dom
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
{
HideSmall
,
MEDIA_WIDTHS
,
SmallOnly
}
from
'
theme
'
import
{
HideSmall
,
MEDIA_WIDTHS
,
SmallOnly
}
from
'
theme
'
import
{
PositionDetails
}
from
'
types/position
'
import
{
PositionDetails
}
from
'
types/position
'
import
{
WETH9
,
Price
,
Token
,
Percent
}
from
'
@uniswap/sdk-core
'
import
{
WETH9
,
Price
,
Token
,
Percent
}
from
'
@uniswap/sdk-core
'
...
...
src/components/ProgressSteps/index.tsx
View file @
d27c83b3
import
React
,
{
useContext
}
from
'
react
'
import
React
,
{
useContext
}
from
'
react
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
{
AutoColumn
}
from
'
../Column
'
import
{
AutoColumn
}
from
'
../Column
'
import
{
ThemeContext
}
from
'
styled-components
'
import
{
ThemeContext
}
from
'
styled-components
'
import
{
TYPE
}
from
'
../../theme
'
import
{
TYPE
}
from
'
../../theme
'
...
...
src/components/QuestionHelper/index.tsx
View file @
d27c83b3
import
React
,
{
useCallback
,
useState
}
from
'
react
'
import
React
,
{
useCallback
,
useState
}
from
'
react
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
Tooltip
from
'
../Tooltip
'
import
Tooltip
from
'
../Tooltip
'
const
QuestionWrapper
=
styled
.
div
`
const
QuestionWrapper
=
styled
.
div
`
...
...
src/components/Row/index.tsx
View file @
d27c83b3
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
{
Box
}
from
'
rebass/styled-components
'
import
{
Box
}
from
'
rebass/styled-components
'
const
Row
=
styled
(
Box
)
<
{
const
Row
=
styled
(
Box
)
<
{
...
...
src/components/SearchModal/CommonBases.tsx
View file @
d27c83b3
import
React
from
'
react
'
import
React
from
'
react
'
import
{
Text
}
from
'
rebass
'
import
{
Text
}
from
'
rebass
'
import
{
ChainId
,
Currency
,
currencyEquals
,
Token
,
ETHER
}
from
'
@uniswap/sdk-core
'
import
{
ChainId
,
Currency
,
currencyEquals
,
Token
,
ETHER
}
from
'
@uniswap/sdk-core
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
{
SUGGESTED_BASES
}
from
'
../../constants
'
import
{
SUGGESTED_BASES
}
from
'
../../constants
'
import
{
AutoColumn
}
from
'
../Column
'
import
{
AutoColumn
}
from
'
../Column
'
...
...
src/components/SearchModal/CurrencyList.tsx
View file @
d27c83b3
...
@@ -2,7 +2,7 @@ import { Currency, CurrencyAmount, currencyEquals, Token } from '@uniswap/sdk-co
...
@@ -2,7 +2,7 @@ import { Currency, CurrencyAmount, currencyEquals, Token } from '@uniswap/sdk-co
import
React
,
{
CSSProperties
,
MutableRefObject
,
useCallback
,
useMemo
}
from
'
react
'
import
React
,
{
CSSProperties
,
MutableRefObject
,
useCallback
,
useMemo
}
from
'
react
'
import
{
FixedSizeList
}
from
'
react-window
'
import
{
FixedSizeList
}
from
'
react-window
'
import
{
Text
}
from
'
rebass
'
import
{
Text
}
from
'
rebass
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
{
useActiveWeb3React
}
from
'
../../hooks
'
import
{
useActiveWeb3React
}
from
'
../../hooks
'
import
{
useCombinedActiveList
}
from
'
../../state/lists/hooks
'
import
{
useCombinedActiveList
}
from
'
../../state/lists/hooks
'
import
{
WrappedTokenInfo
}
from
'
../../state/lists/wrappedTokenInfo
'
import
{
WrappedTokenInfo
}
from
'
../../state/lists/wrappedTokenInfo
'
...
...
src/components/SearchModal/CurrencySearch.tsx
View file @
d27c83b3
...
@@ -16,7 +16,7 @@ import { filterTokens, useSortedTokensByQuery } from './filtering'
...
@@ -16,7 +16,7 @@ import { filterTokens, useSortedTokensByQuery } from './filtering'
import
{
useTokenComparator
}
from
'
./sorting
'
import
{
useTokenComparator
}
from
'
./sorting
'
import
{
PaddedColumn
,
SearchInput
,
Separator
}
from
'
./styleds
'
import
{
PaddedColumn
,
SearchInput
,
Separator
}
from
'
./styleds
'
import
AutoSizer
from
'
react-virtualized-auto-sizer
'
import
AutoSizer
from
'
react-virtualized-auto-sizer
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
useToggle
from
'
hooks/useToggle
'
import
useToggle
from
'
hooks/useToggle
'
import
{
useOnClickOutside
}
from
'
hooks/useOnClickOutside
'
import
{
useOnClickOutside
}
from
'
hooks/useOnClickOutside
'
import
useTheme
from
'
hooks/useTheme
'
import
useTheme
from
'
hooks/useTheme
'
...
...
src/components/SearchModal/ImportList.tsx
View file @
d27c83b3
import
React
,
{
useState
,
useCallback
}
from
'
react
'
import
React
,
{
useState
,
useCallback
}
from
'
react
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
ReactGA
from
'
react-ga
'
import
ReactGA
from
'
react-ga
'
import
{
TYPE
,
CloseIcon
}
from
'
theme
'
import
{
TYPE
,
CloseIcon
}
from
'
theme
'
import
Card
from
'
components/Card
'
import
Card
from
'
components/Card
'
...
...
src/components/SearchModal/ImportRow.tsx
View file @
d27c83b3
...
@@ -7,7 +7,7 @@ import { TYPE } from 'theme'
...
@@ -7,7 +7,7 @@ import { TYPE } from 'theme'
import
ListLogo
from
'
components/ListLogo
'
import
ListLogo
from
'
components/ListLogo
'
import
useTheme
from
'
hooks/useTheme
'
import
useTheme
from
'
hooks/useTheme
'
import
{
ButtonPrimary
}
from
'
components/Button
'
import
{
ButtonPrimary
}
from
'
components/Button
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
{
useIsUserAddedToken
,
useIsTokenActive
}
from
'
hooks/Tokens
'
import
{
useIsUserAddedToken
,
useIsTokenActive
}
from
'
hooks/Tokens
'
import
{
CheckCircle
}
from
'
react-feather
'
import
{
CheckCircle
}
from
'
react-feather
'
import
{
WrappedTokenInfo
}
from
'
../../state/lists/wrappedTokenInfo
'
import
{
WrappedTokenInfo
}
from
'
../../state/lists/wrappedTokenInfo
'
...
...
src/components/SearchModal/ImportToken.tsx
View file @
d27c83b3
import
{
TokenList
}
from
'
@uniswap/token-lists/dist/types
'
import
{
TokenList
}
from
'
@uniswap/token-lists/dist/types
'
import
React
from
'
react
'
import
React
from
'
react
'
import
{
Token
,
Currency
}
from
'
@uniswap/sdk-core
'
import
{
Token
,
Currency
}
from
'
@uniswap/sdk-core
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
{
TYPE
,
CloseIcon
}
from
'
theme
'
import
{
TYPE
,
CloseIcon
}
from
'
theme
'
import
Card
from
'
components/Card
'
import
Card
from
'
components/Card
'
import
{
AutoColumn
}
from
'
components/Column
'
import
{
AutoColumn
}
from
'
components/Column
'
...
...
src/components/SearchModal/Manage.tsx
View file @
d27c83b3
...
@@ -4,7 +4,7 @@ import { RowBetween } from 'components/Row'
...
@@ -4,7 +4,7 @@ import { RowBetween } from 'components/Row'
import
{
ArrowLeft
}
from
'
react-feather
'
import
{
ArrowLeft
}
from
'
react-feather
'
import
{
Text
}
from
'
rebass
'
import
{
Text
}
from
'
rebass
'
import
{
CloseIcon
}
from
'
theme
'
import
{
CloseIcon
}
from
'
theme
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
{
Token
}
from
'
@uniswap/sdk-core
'
import
{
Token
}
from
'
@uniswap/sdk-core
'
import
{
ManageLists
}
from
'
./ManageLists
'
import
{
ManageLists
}
from
'
./ManageLists
'
import
ManageTokens
from
'
./ManageTokens
'
import
ManageTokens
from
'
./ManageTokens
'
...
...
src/components/SearchModal/ManageLists.tsx
View file @
d27c83b3
...
@@ -3,7 +3,7 @@ import { Settings, CheckCircle } from 'react-feather'
...
@@ -3,7 +3,7 @@ import { Settings, CheckCircle } from 'react-feather'
import
ReactGA
from
'
react-ga
'
import
ReactGA
from
'
react-ga
'
import
{
usePopper
}
from
'
react-popper
'
import
{
usePopper
}
from
'
react-popper
'
import
{
useDispatch
,
useSelector
}
from
'
react-redux
'
import
{
useDispatch
,
useSelector
}
from
'
react-redux
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
{
useFetchListCallback
}
from
'
../../hooks/useFetchListCallback
'
import
{
useFetchListCallback
}
from
'
../../hooks/useFetchListCallback
'
import
{
useOnClickOutside
}
from
'
../../hooks/useOnClickOutside
'
import
{
useOnClickOutside
}
from
'
../../hooks/useOnClickOutside
'
import
{
TokenList
}
from
'
@uniswap/token-lists
'
import
{
TokenList
}
from
'
@uniswap/token-lists
'
...
...
src/components/SearchModal/ManageTokens.tsx
View file @
d27c83b3
...
@@ -4,7 +4,7 @@ import { PaddedColumn, Separator, SearchInput } from './styleds'
...
@@ -4,7 +4,7 @@ import { PaddedColumn, Separator, SearchInput } from './styleds'
import
Row
,
{
RowBetween
,
RowFixed
}
from
'
components/Row
'
import
Row
,
{
RowBetween
,
RowFixed
}
from
'
components/Row
'
import
{
TYPE
,
ExternalLinkIcon
,
TrashIcon
,
ButtonText
,
ExternalLink
}
from
'
theme
'
import
{
TYPE
,
ExternalLinkIcon
,
TrashIcon
,
ButtonText
,
ExternalLink
}
from
'
theme
'
import
{
useToken
}
from
'
hooks/Tokens
'
import
{
useToken
}
from
'
hooks/Tokens
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
{
useUserAddedTokens
,
useRemoveUserAddedToken
}
from
'
state/user/hooks
'
import
{
useUserAddedTokens
,
useRemoveUserAddedToken
}
from
'
state/user/hooks
'
import
{
Token
}
from
'
@uniswap/sdk-core
'
import
{
Token
}
from
'
@uniswap/sdk-core
'
import
CurrencyLogo
from
'
components/CurrencyLogo
'
import
CurrencyLogo
from
'
components/CurrencyLogo
'
...
...
src/components/SearchModal/SortButton.tsx
View file @
d27c83b3
import
React
from
'
react
'
import
React
from
'
react
'
import
{
Text
}
from
'
rebass
'
import
{
Text
}
from
'
rebass
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
{
RowFixed
}
from
'
../Row
'
import
{
RowFixed
}
from
'
../Row
'
export
const
FilterWrapper
=
styled
(
RowFixed
)
`
export
const
FilterWrapper
=
styled
(
RowFixed
)
`
...
...
src/components/SearchModal/styleds.tsx
View file @
d27c83b3
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
{
AutoColumn
}
from
'
../Column
'
import
{
AutoColumn
}
from
'
../Column
'
import
{
RowBetween
,
RowFixed
}
from
'
../Row
'
import
{
RowBetween
,
RowFixed
}
from
'
../Row
'
...
...
src/components/Slider/index.tsx
View file @
d27c83b3
import
React
,
{
useCallback
}
from
'
react
'
import
React
,
{
useCallback
}
from
'
react
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
const
StyledRangeInput
=
styled
.
input
<
{
size
:
number
}
>
`
const
StyledRangeInput
=
styled
.
input
<
{
size
:
number
}
>
`
-webkit-appearance: none; /* Hides the slider so that custom slider can be made */
-webkit-appearance: none; /* Hides the slider so that custom slider can be made */
...
...
src/components/ThemeColorPalette/index.tsx
View file @
d27c83b3
import
{
readableColor
}
from
'
polished
'
import
{
readableColor
}
from
'
polished
'
import
React
from
'
react
'
import
React
from
'
react
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
{
colors
}
from
'
theme
'
import
{
colors
}
from
'
theme
'
const
Swatch
=
styled
.
div
`
const
Swatch
=
styled
.
div
`
...
...
src/components/Toggle/ListToggle.tsx
View file @
d27c83b3
import
React
from
'
react
'
import
React
from
'
react
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
{
TYPE
}
from
'
../../theme
'
import
{
TYPE
}
from
'
../../theme
'
const
Wrapper
=
styled
.
button
<
{
isActive
?:
boolean
;
activeElement
?:
boolean
}
>
`
const
Wrapper
=
styled
.
button
<
{
isActive
?:
boolean
;
activeElement
?:
boolean
}
>
`
...
...
src/components/Toggle/MultiToggle.stories.tsx
View file @
d27c83b3
import
{
Story
}
from
'
@storybook/react/types-6-0
'
import
{
Story
}
from
'
@storybook/react/types-6-0
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
React
,
{
useState
}
from
'
react
'
import
React
,
{
useState
}
from
'
react
'
import
MultiToggle
from
'
./MultiToggle
'
import
MultiToggle
from
'
./MultiToggle
'
...
...
src/components/Toggle/MultiToggle.tsx
View file @
d27c83b3
import
React
from
'
react
'
import
React
from
'
react
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
export
const
ToggleWrapper
=
styled
.
button
<
{
width
?:
string
}
>
`
export
const
ToggleWrapper
=
styled
.
button
<
{
width
?:
string
}
>
`
display: flex;
display: flex;
...
...
src/components/Toggle/index.tsx
View file @
d27c83b3
import
React
from
'
react
'
import
React
from
'
react
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
const
ToggleElement
=
styled
.
span
<
{
isActive
?:
boolean
;
isOnSwitch
?:
boolean
}
>
`
const
ToggleElement
=
styled
.
span
<
{
isActive
?:
boolean
;
isOnSwitch
?:
boolean
}
>
`
padding: 0.25rem 0.5rem;
padding: 0.25rem 0.5rem;
...
...
src/components/Tooltip/index.tsx
View file @
d27c83b3
import
React
,
{
useCallback
,
useState
}
from
'
react
'
import
React
,
{
useCallback
,
useState
}
from
'
react
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
Popover
,
{
PopoverProps
}
from
'
../Popover
'
import
Popover
,
{
PopoverProps
}
from
'
../Popover
'
const
TooltipContainer
=
styled
.
div
`
const
TooltipContainer
=
styled
.
div
`
...
...
src/components/WalletModal/Option.tsx
View file @
d27c83b3
import
React
from
'
react
'
import
React
from
'
react
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
{
ExternalLink
}
from
'
../../theme
'
import
{
ExternalLink
}
from
'
../../theme
'
const
InfoCard
=
styled
.
button
<
{
active
?:
boolean
}
>
`
const
InfoCard
=
styled
.
button
<
{
active
?:
boolean
}
>
`
...
...
src/components/WalletModal/PendingView.tsx
View file @
d27c83b3
import
{
AbstractConnector
}
from
'
@web3-react/abstract-connector
'
import
{
AbstractConnector
}
from
'
@web3-react/abstract-connector
'
import
React
from
'
react
'
import
React
from
'
react
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
Option
from
'
./Option
'
import
Option
from
'
./Option
'
import
{
SUPPORTED_WALLETS
}
from
'
../../constants
'
import
{
SUPPORTED_WALLETS
}
from
'
../../constants
'
import
{
injected
}
from
'
../../connectors
'
import
{
injected
}
from
'
../../connectors
'
...
...
src/components/WalletModal/index.tsx
View file @
d27c83b3
...
@@ -5,7 +5,7 @@ import { AutoRow } from 'components/Row'
...
@@ -5,7 +5,7 @@ import { AutoRow } from 'components/Row'
import
React
,
{
useEffect
,
useState
}
from
'
react
'
import
React
,
{
useEffect
,
useState
}
from
'
react
'
import
{
isMobile
}
from
'
react-device-detect
'
import
{
isMobile
}
from
'
react-device-detect
'
import
ReactGA
from
'
react-ga
'
import
ReactGA
from
'
react-ga
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
MetamaskIcon
from
'
../../assets/images/metamask.png
'
import
MetamaskIcon
from
'
../../assets/images/metamask.png
'
import
{
ReactComponent
as
Close
}
from
'
../../assets/images/x.svg
'
import
{
ReactComponent
as
Close
}
from
'
../../assets/images/x.svg
'
import
{
fortmatic
,
injected
,
portis
}
from
'
../../connectors
'
import
{
fortmatic
,
injected
,
portis
}
from
'
../../connectors
'
...
...
src/components/Web3ReactManager/index.tsx
View file @
d27c83b3
import
React
,
{
useState
,
useEffect
}
from
'
react
'
import
React
,
{
useState
,
useEffect
}
from
'
react
'
import
{
useWeb3React
}
from
'
@web3-react/core
'
import
{
useWeb3React
}
from
'
@web3-react/core
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
{
useTranslation
}
from
'
react-i18next
'
import
{
useTranslation
}
from
'
react-i18next
'
import
{
network
}
from
'
../../connectors
'
import
{
network
}
from
'
../../connectors
'
...
...
src/components/claim/AddressClaimModal.tsx
View file @
d27c83b3
import
React
,
{
useState
}
from
'
react
'
import
React
,
{
useState
}
from
'
react
'
import
Modal
from
'
../Modal
'
import
Modal
from
'
../Modal
'
import
{
AutoColumn
,
ColumnCenter
}
from
'
../Column
'
import
{
AutoColumn
,
ColumnCenter
}
from
'
../Column
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
{
DataCard
,
CardSection
,
Break
}
from
'
../earn/styled
'
import
{
DataCard
,
CardSection
,
Break
}
from
'
../earn/styled
'
import
{
RowBetween
}
from
'
../Row
'
import
{
RowBetween
}
from
'
../Row
'
import
{
TYPE
,
ExternalLink
,
CloseIcon
,
CustomLightSpinner
,
UniTokenAnimated
}
from
'
../../theme
'
import
{
TYPE
,
ExternalLink
,
CloseIcon
,
CustomLightSpinner
,
UniTokenAnimated
}
from
'
../../theme
'
...
...
src/components/claim/ClaimModal.tsx
View file @
d27c83b3
...
@@ -3,7 +3,7 @@ import { CurrencyAmount, Token } from '@uniswap/sdk-core'
...
@@ -3,7 +3,7 @@ import { CurrencyAmount, Token } from '@uniswap/sdk-core'
import
{
isAddress
}
from
'
ethers/lib/utils
'
import
{
isAddress
}
from
'
ethers/lib/utils
'
import
React
,
{
useEffect
,
useState
}
from
'
react
'
import
React
,
{
useEffect
,
useState
}
from
'
react
'
import
{
Text
}
from
'
rebass
'
import
{
Text
}
from
'
rebass
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
Circle
from
'
../../assets/images/blue-loader.svg
'
import
Circle
from
'
../../assets/images/blue-loader.svg
'
import
tokenLogo
from
'
../../assets/images/token-logo.png
'
import
tokenLogo
from
'
../../assets/images/token-logo.png
'
import
{
useActiveWeb3React
}
from
'
../../hooks
'
import
{
useActiveWeb3React
}
from
'
../../hooks
'
...
...
src/components/earn/ClaimRewardModal.tsx
View file @
d27c83b3
import
React
,
{
useState
}
from
'
react
'
import
React
,
{
useState
}
from
'
react
'
import
Modal
from
'
../Modal
'
import
Modal
from
'
../Modal
'
import
{
AutoColumn
}
from
'
../Column
'
import
{
AutoColumn
}
from
'
../Column
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
{
RowBetween
}
from
'
../Row
'
import
{
RowBetween
}
from
'
../Row
'
import
{
TYPE
,
CloseIcon
}
from
'
../../theme
'
import
{
TYPE
,
CloseIcon
}
from
'
../../theme
'
import
{
ButtonError
}
from
'
../Button
'
import
{
ButtonError
}
from
'
../Button
'
...
...
src/components/earn/PoolCard.tsx
View file @
d27c83b3
import
React
from
'
react
'
import
React
from
'
react
'
import
{
AutoColumn
}
from
'
../Column
'
import
{
AutoColumn
}
from
'
../Column
'
import
{
RowBetween
}
from
'
../Row
'
import
{
RowBetween
}
from
'
../Row
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
{
TYPE
,
StyledInternalLink
}
from
'
../../theme
'
import
{
TYPE
,
StyledInternalLink
}
from
'
../../theme
'
import
DoubleCurrencyLogo
from
'
../DoubleLogo
'
import
DoubleCurrencyLogo
from
'
../DoubleLogo
'
import
{
CurrencyAmount
,
Token
}
from
'
@uniswap/sdk-core
'
import
{
CurrencyAmount
,
Token
}
from
'
@uniswap/sdk-core
'
...
...
src/components/earn/StakingModal.tsx
View file @
d27c83b3
...
@@ -4,7 +4,7 @@ import { useV2LiquidityTokenPermit } from '../../hooks/useERC20Permit'
...
@@ -4,7 +4,7 @@ import { useV2LiquidityTokenPermit } from '../../hooks/useERC20Permit'
import
useTransactionDeadline
from
'
../../hooks/useTransactionDeadline
'
import
useTransactionDeadline
from
'
../../hooks/useTransactionDeadline
'
import
Modal
from
'
../Modal
'
import
Modal
from
'
../Modal
'
import
{
AutoColumn
}
from
'
../Column
'
import
{
AutoColumn
}
from
'
../Column
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
{
RowBetween
}
from
'
../Row
'
import
{
RowBetween
}
from
'
../Row
'
import
{
TYPE
,
CloseIcon
}
from
'
../../theme
'
import
{
TYPE
,
CloseIcon
}
from
'
../../theme
'
import
{
ButtonConfirmed
,
ButtonError
}
from
'
../Button
'
import
{
ButtonConfirmed
,
ButtonError
}
from
'
../Button
'
...
...
src/components/earn/UnstakingModal.tsx
View file @
d27c83b3
import
React
,
{
useState
}
from
'
react
'
import
React
,
{
useState
}
from
'
react
'
import
Modal
from
'
../Modal
'
import
Modal
from
'
../Modal
'
import
{
AutoColumn
}
from
'
../Column
'
import
{
AutoColumn
}
from
'
../Column
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
{
RowBetween
}
from
'
../Row
'
import
{
RowBetween
}
from
'
../Row
'
import
{
TYPE
,
CloseIcon
}
from
'
../../theme
'
import
{
TYPE
,
CloseIcon
}
from
'
../../theme
'
import
{
ButtonError
}
from
'
../Button
'
import
{
ButtonError
}
from
'
../Button
'
...
...
src/components/earn/styled.ts
View file @
d27c83b3
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
{
AutoColumn
}
from
'
../Column
'
import
{
AutoColumn
}
from
'
../Column
'
import
uImage
from
'
../../assets/images/big_unicorn.png
'
import
uImage
from
'
../../assets/images/big_unicorn.png
'
...
...
src/components/swap/AdvancedSwapDetailsDropdown.tsx
View file @
d27c83b3
import
React
from
'
react
'
import
React
from
'
react
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
{
useLastTruthy
}
from
'
../../hooks/useLast
'
import
{
useLastTruthy
}
from
'
../../hooks/useLast
'
import
{
AdvancedSwapDetails
,
AdvancedSwapDetailsProps
}
from
'
./AdvancedSwapDetails
'
import
{
AdvancedSwapDetails
,
AdvancedSwapDetailsProps
}
from
'
./AdvancedSwapDetails
'
...
...
src/components/swap/BetterTradeLink.tsx
View file @
d27c83b3
...
@@ -7,7 +7,7 @@ import useParsedQueryString from '../../hooks/useParsedQueryString'
...
@@ -7,7 +7,7 @@ import useParsedQueryString from '../../hooks/useParsedQueryString'
import
{
DEFAULT_VERSION
,
Version
}
from
'
../../hooks/useToggledVersion
'
import
{
DEFAULT_VERSION
,
Version
}
from
'
../../hooks/useToggledVersion
'
import
{
HideSmall
,
TYPE
,
SmallOnly
}
from
'
../../theme
'
import
{
HideSmall
,
TYPE
,
SmallOnly
}
from
'
../../theme
'
import
{
ButtonPrimary
}
from
'
../Button
'
import
{
ButtonPrimary
}
from
'
../Button
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
{
Zap
}
from
'
react-feather
'
import
{
Zap
}
from
'
react-feather
'
const
ResponsiveButton
=
styled
(
ButtonPrimary
)
`
const
ResponsiveButton
=
styled
(
ButtonPrimary
)
`
...
...
src/components/swap/SwapHeader.tsx
View file @
d27c83b3
import
React
from
'
react
'
import
React
from
'
react
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
SettingsTab
from
'
../Settings
'
import
SettingsTab
from
'
../Settings
'
import
{
Percent
}
from
'
@uniswap/sdk-core
'
import
{
Percent
}
from
'
@uniswap/sdk-core
'
...
...
src/components/swap/UnsupportedCurrencyFooter.tsx
View file @
d27c83b3
import
React
,
{
useState
}
from
'
react
'
import
React
,
{
useState
}
from
'
react
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
{
TYPE
,
CloseIcon
,
ExternalLink
}
from
'
theme
'
import
{
TYPE
,
CloseIcon
,
ExternalLink
}
from
'
theme
'
import
{
ButtonEmpty
}
from
'
components/Button
'
import
{
ButtonEmpty
}
from
'
components/Button
'
import
Modal
from
'
components/Modal
'
import
Modal
from
'
components/Modal
'
...
...
src/components/vote/DelegateModal.tsx
View file @
d27c83b3
...
@@ -2,7 +2,7 @@ import React, { useState } from 'react'
...
@@ -2,7 +2,7 @@ import React, { useState } from 'react'
import
Modal
from
'
../Modal
'
import
Modal
from
'
../Modal
'
import
{
AutoColumn
}
from
'
../Column
'
import
{
AutoColumn
}
from
'
../Column
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
{
RowBetween
}
from
'
../Row
'
import
{
RowBetween
}
from
'
../Row
'
import
{
TYPE
}
from
'
../../theme
'
import
{
TYPE
}
from
'
../../theme
'
import
{
X
}
from
'
react-feather
'
import
{
X
}
from
'
react-feather
'
...
...
src/pages/AddLiquidity/Review.tsx
View file @
d27c83b3
...
@@ -2,7 +2,7 @@ import React from 'react'
...
@@ -2,7 +2,7 @@ import React from 'react'
import
{
Field
}
from
'
../../state/mint/v3/actions
'
import
{
Field
}
from
'
../../state/mint/v3/actions
'
import
{
AutoColumn
}
from
'
components/Column
'
import
{
AutoColumn
}
from
'
components/Column
'
import
Card
from
'
components/Card
'
import
Card
from
'
components/Card
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
{
Currency
,
CurrencyAmount
,
Price
}
from
'
@uniswap/sdk-core
'
import
{
Currency
,
CurrencyAmount
,
Price
}
from
'
@uniswap/sdk-core
'
import
{
Position
}
from
'
@uniswap/v3-sdk
'
import
{
Position
}
from
'
@uniswap/v3-sdk
'
import
{
PositionPreview
}
from
'
components/PositionPreview
'
import
{
PositionPreview
}
from
'
components/PositionPreview
'
...
...
src/pages/AddLiquidity/styled.tsx
View file @
d27c83b3
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
{
AutoColumn
}
from
'
components/Column
'
import
{
AutoColumn
}
from
'
components/Column
'
import
CurrencyInputPanel
from
'
components/CurrencyInputPanel
'
import
CurrencyInputPanel
from
'
components/CurrencyInputPanel
'
import
{
DarkGreyCard
}
from
'
components/Card
'
import
{
DarkGreyCard
}
from
'
components/Card
'
...
...
src/pages/App.tsx
View file @
d27c83b3
import
React
,
{
Suspense
}
from
'
react
'
import
React
,
{
Suspense
}
from
'
react
'
import
{
Route
,
Switch
}
from
'
react-router-dom
'
import
{
Route
,
Switch
}
from
'
react-router-dom
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
GoogleAnalyticsReporter
from
'
../components/analytics/GoogleAnalyticsReporter
'
import
GoogleAnalyticsReporter
from
'
../components/analytics/GoogleAnalyticsReporter
'
import
AddressClaimModal
from
'
../components/claim/AddressClaimModal
'
import
AddressClaimModal
from
'
../components/claim/AddressClaimModal
'
import
Header
from
'
../components/Header
'
import
Header
from
'
../components/Header
'
...
...
src/pages/AppBody.tsx
View file @
d27c83b3
import
React
from
'
react
'
import
React
from
'
react
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
export
const
BodyWrapper
=
styled
.
div
<
{
margin
?:
string
}
>
`
export
const
BodyWrapper
=
styled
.
div
<
{
margin
?:
string
}
>
`
position: relative;
position: relative;
...
...
src/pages/Earn/Manage.tsx
View file @
d27c83b3
import
React
,
{
useCallback
,
useState
}
from
'
react
'
import
React
,
{
useCallback
,
useState
}
from
'
react
'
import
{
AutoColumn
}
from
'
../../components/Column
'
import
{
AutoColumn
}
from
'
../../components/Column
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
{
Link
}
from
'
react-router-dom
'
import
{
Link
}
from
'
react-router-dom
'
import
JSBI
from
'
jsbi
'
import
JSBI
from
'
jsbi
'
import
{
Token
,
CurrencyAmount
}
from
'
@uniswap/sdk-core
'
import
{
Token
,
CurrencyAmount
}
from
'
@uniswap/sdk-core
'
...
...
src/pages/Earn/index.tsx
View file @
d27c83b3
import
JSBI
from
'
jsbi
'
import
JSBI
from
'
jsbi
'
import
React
from
'
react
'
import
React
from
'
react
'
import
{
AutoColumn
}
from
'
../../components/Column
'
import
{
AutoColumn
}
from
'
../../components/Column
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
{
STAKING_REWARDS_INFO
,
useStakingInfo
}
from
'
../../state/stake/hooks
'
import
{
STAKING_REWARDS_INFO
,
useStakingInfo
}
from
'
../../state/stake/hooks
'
import
{
TYPE
,
ExternalLink
}
from
'
../../theme
'
import
{
TYPE
,
ExternalLink
}
from
'
../../theme
'
import
PoolCard
from
'
../../components/earn/PoolCard
'
import
PoolCard
from
'
../../components/earn/PoolCard
'
...
...
src/pages/Pool/CTACards.tsx
View file @
d27c83b3
import
React
from
'
react
'
import
React
from
'
react
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
{
TYPE
}
from
'
theme
'
import
{
TYPE
}
from
'
theme
'
import
{
useTranslation
}
from
'
react-i18next
'
import
{
useTranslation
}
from
'
react-i18next
'
import
{
ExternalLink
}
from
'
../../theme
'
import
{
ExternalLink
}
from
'
../../theme
'
...
...
src/pages/Pool/PositionPage.tsx
View file @
d27c83b3
...
@@ -8,7 +8,7 @@ import { Link, RouteComponentProps } from 'react-router-dom'
...
@@ -8,7 +8,7 @@ import { Link, RouteComponentProps } from 'react-router-dom'
import
{
unwrappedToken
}
from
'
utils/wrappedCurrency
'
import
{
unwrappedToken
}
from
'
utils/wrappedCurrency
'
import
{
usePositionTokenURI
}
from
'
../../hooks/usePositionTokenURI
'
import
{
usePositionTokenURI
}
from
'
../../hooks/usePositionTokenURI
'
import
{
LoadingRows
}
from
'
./styleds
'
import
{
LoadingRows
}
from
'
./styleds
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
{
AutoColumn
}
from
'
components/Column
'
import
{
AutoColumn
}
from
'
components/Column
'
import
{
RowBetween
,
RowFixed
}
from
'
components/Row
'
import
{
RowBetween
,
RowFixed
}
from
'
components/Row
'
import
DoubleCurrencyLogo
from
'
components/DoubleLogo
'
import
DoubleCurrencyLogo
from
'
components/DoubleLogo
'
...
...
src/pages/RemoveLiquidity/styled.ts
View file @
d27c83b3
import
{
MaxButton
}
from
'
pages/Pool/styleds
'
import
{
MaxButton
}
from
'
pages/Pool/styleds
'
import
{
Text
}
from
'
rebass
'
import
{
Text
}
from
'
rebass
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
export
const
Wrapper
=
styled
.
div
`
export
const
Wrapper
=
styled
.
div
`
position: relative;
position: relative;
...
...
src/pages/Vote/VotePage.tsx
View file @
d27c83b3
import
React
,
{
useState
}
from
'
react
'
import
React
,
{
useState
}
from
'
react
'
import
{
AutoColumn
}
from
'
../../components/Column
'
import
{
AutoColumn
}
from
'
../../components/Column
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
{
RouteComponentProps
}
from
'
react-router-dom
'
import
{
RouteComponentProps
}
from
'
react-router-dom
'
import
{
ExternalLink
,
StyledInternalLink
,
TYPE
}
from
'
../../theme
'
import
{
ExternalLink
,
StyledInternalLink
,
TYPE
}
from
'
../../theme
'
...
...
src/pages/Vote/index.tsx
View file @
d27c83b3
import
React
from
'
react
'
import
React
from
'
react
'
import
{
AutoColumn
}
from
'
../../components/Column
'
import
{
AutoColumn
}
from
'
../../components/Column
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
import
{
ExternalLink
,
TYPE
}
from
'
../../theme
'
import
{
ExternalLink
,
TYPE
}
from
'
../../theme
'
import
{
RowBetween
,
RowFixed
}
from
'
../../components/Row
'
import
{
RowBetween
,
RowFixed
}
from
'
../../components/Row
'
import
{
Link
}
from
'
react-router-dom
'
import
{
Link
}
from
'
react-router-dom
'
...
...
src/pages/styled.tsx
View file @
d27c83b3
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
/macro
'
export
const
StandardPageWrapper
=
styled
.
div
`
export
const
StandardPageWrapper
=
styled
.
div
`
padding-top: 160px;
padding-top: 160px;
...
...
yarn.lock
View file @
d27c83b3
This diff is collapsed.
Click to expand it.
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