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
71212f7e
Unverified
Commit
71212f7e
authored
Sep 27, 2023
by
Kristie Huang
Committed by
GitHub
Sep 27, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: use sentence case for text (#7375)
parent
731ff4a4
Changes
52
Hide whitespace changes
Inline
Side-by-side
Showing
52 changed files
with
97 additions
and
97 deletions
+97
-97
token-details.test.ts
cypress/e2e/token-details.test.ts
+1
-1
connect.test.ts
cypress/e2e/wallet-connection/connect.test.ts
+1
-1
RangeBadge.tsx
src/components/Badge/RangeBadge.tsx
+1
-1
index.test.tsx.snap
...nents/Charts/PriceChart/__snapshots__/index.test.tsx.snap
+2
-2
index.test.tsx
src/components/Charts/PriceChart/index.test.tsx
+2
-2
index.tsx
src/components/Charts/PriceChart/index.tsx
+2
-2
index.tsx
src/components/ConnectedAccountBlocked/index.tsx
+1
-1
index.tsx
src/components/FiatOnrampModal/index.tsx
+2
-2
SearchBarDropdown.tsx
src/components/NavBar/SearchBarDropdown.tsx
+1
-1
index.tsx
src/components/NavigationTabs/index.tsx
+3
-3
ChainConnectivityWarning.tsx
src/components/Polling/ChainConnectivityWarning.tsx
+1
-1
index.tsx
src/components/PositionCard/index.tsx
+1
-1
index.tsx
src/components/PositionPreview/index.tsx
+3
-3
PresetsButtons.tsx
src/components/RangeSelector/PresetsButtons.tsx
+1
-1
index.tsx
src/components/TransactionConfirmationModal/index.tsx
+1
-1
ConnectionErrorView.tsx
src/components/WalletModal/ConnectionErrorView.tsx
+1
-1
PrivacyPolicyNotice.tsx
src/components/WalletModal/PrivacyPolicyNotice.tsx
+1
-1
AddressClaimModal.tsx
src/components/claim/AddressClaimModal.tsx
+1
-1
UnsupportedCurrencyFooter.test.tsx
src/components/swap/UnsupportedCurrencyFooter.test.tsx
+4
-4
UnsupportedCurrencyFooter.tsx
src/components/swap/UnsupportedCurrencyFooter.tsx
+1
-1
DelegateModal.tsx
src/components/vote/DelegateModal.tsx
+4
-4
ExecuteModal.tsx
src/components/vote/ExecuteModal.tsx
+2
-2
QueueModal.tsx
src/components/vote/QueueModal.tsx
+2
-2
VoteModal.tsx
src/components/vote/VoteModal.tsx
+1
-1
tokenSafety.tsx
src/constants/tokenSafety.tsx
+1
-1
BagFooter.test.tsx
src/nft/components/bag/BagFooter.test.tsx
+2
-2
ButtonStates.tsx
src/nft/components/bag/ButtonStates.tsx
+2
-2
NFTListingsGrid.tsx
src/nft/components/profile/list/NFTListingsGrid.tsx
+2
-2
index.tsx
src/nft/pages/profile/index.tsx
+1
-1
index.tsx
src/pages/AddLiquidity/index.tsx
+7
-7
ConfirmAddModalBottom.tsx
src/pages/AddLiquidityV2/ConfirmAddModalBottom.tsx
+1
-1
PoolPriceBar.tsx
src/pages/AddLiquidityV2/PoolPriceBar.tsx
+1
-1
index.tsx
src/pages/AddLiquidityV2/index.tsx
+2
-2
ProposalActionSelector.tsx
src/pages/CreateProposal/ProposalActionSelector.tsx
+3
-3
ProposalSubmissionModal.tsx
src/pages/CreateProposal/ProposalSubmissionModal.tsx
+2
-2
index.tsx
src/pages/CreateProposal/index.tsx
+1
-1
index.test.tsx.snap
src/pages/Landing/__snapshots__/index.test.tsx.snap
+2
-2
MigrateV2Pair.tsx
src/pages/MigrateV2/MigrateV2Pair.tsx
+3
-3
index.tsx
src/pages/MigrateV2/index.tsx
+2
-2
PositionPage.tsx
src/pages/Pool/PositionPage.tsx
+2
-2
v2.tsx
src/pages/Pool/v2.tsx
+3
-3
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
+2
-2
index.tsx
src/pages/Swap/index.tsx
+3
-3
Landing.tsx
src/pages/Vote/Landing.tsx
+5
-5
VotePage.tsx
src/pages/Vote/VotePage.tsx
+3
-3
hooks.tsx
src/state/burn/hooks.tsx
+1
-1
hooks.tsx
src/state/burn/v3/hooks.tsx
+1
-1
hooks.tsx
src/state/mint/hooks.tsx
+1
-1
hooks.tsx
src/state/mint/v3/hooks.tsx
+1
-1
hooks.tsx
src/state/swap/hooks.tsx
+1
-1
No files found.
cypress/e2e/token-details.test.ts
View file @
71212f7e
...
@@ -52,7 +52,7 @@ describe('Token details', () => {
...
@@ -52,7 +52,7 @@ describe('Token details', () => {
cy
.
visit
(
'
/tokens/ethereum/0xa71d0588EAf47f12B13cF8eC750430d21DF04974
'
)
cy
.
visit
(
'
/tokens/ethereum/0xa71d0588EAf47f12B13cF8eC750430d21DF04974
'
)
// Should have missing price chart when price unavailable (expected for this token)
// Should have missing price chart when price unavailable (expected for this token)
if
(
cy
.
get
(
'
[data-cy="chart-header"]
'
).
contains
(
'
Price
U
navailable
'
))
{
if
(
cy
.
get
(
'
[data-cy="chart-header"]
'
).
contains
(
'
Price
u
navailable
'
))
{
cy
.
get
(
'
[data-cy="missing-chart"]
'
).
should
(
'
exist
'
)
cy
.
get
(
'
[data-cy="missing-chart"]
'
).
should
(
'
exist
'
)
}
}
...
...
cypress/e2e/wallet-connection/connect.test.ts
View file @
71212f7e
...
@@ -19,7 +19,7 @@ describe('disconnect wallet', () => {
...
@@ -19,7 +19,7 @@ describe('disconnect wallet', () => {
// Verify wallet has disconnected
// Verify wallet has disconnected
cy
.
contains
(
'
Connect a wallet
'
).
should
(
'
exist
'
)
cy
.
contains
(
'
Connect a wallet
'
).
should
(
'
exist
'
)
cy
.
get
(
getTestSelector
(
'
navbar-connect-wallet
'
)).
contains
(
'
Connect
'
)
cy
.
get
(
getTestSelector
(
'
navbar-connect-wallet
'
)).
contains
(
'
Connect
'
)
cy
.
contains
(
'
Connect
W
allet
'
)
cy
.
contains
(
'
Connect
w
allet
'
)
// Verify swap input is cleared
// Verify swap input is cleared
cy
.
get
(
'
#swap-currency-input .token-amount-input
'
).
should
(
'
have.value
'
,
'
1
'
)
cy
.
get
(
'
#swap-currency-input .token-amount-input
'
).
should
(
'
have.value
'
,
'
1
'
)
...
...
src/components/Badge/RangeBadge.tsx
View file @
71212f7e
...
@@ -55,7 +55,7 @@ export default function RangeBadge({ removed, inRange }: { removed?: boolean; in
...
@@ -55,7 +55,7 @@ export default function RangeBadge({ removed, inRange }: { removed?: boolean; in
>
>
<
LabelText
color=
{
theme
.
success
}
>
<
LabelText
color=
{
theme
.
success
}
>
<
BadgeText
>
<
BadgeText
>
<
Trans
>
In
R
ange
</
Trans
>
<
Trans
>
In
r
ange
</
Trans
>
</
BadgeText
>
</
BadgeText
>
<
ActiveDot
/>
<
ActiveDot
/>
</
LabelText
>
</
LabelText
>
...
...
src/components/Charts/PriceChart/__snapshots__/index.test.tsx.snap
View file @
71212f7e
...
@@ -366,7 +366,7 @@ exports[`PriceChart renders correctly with empty price array 1`] = `
...
@@ -366,7 +366,7 @@ exports[`PriceChart renders correctly with empty price array 1`] = `
<div
<div
class="c1 css-slqfkh"
class="c1 css-slqfkh"
>
>
Price
U
navailable
Price
u
navailable
</div>
</div>
<div
<div
class="c1 css-142zc9n"
class="c1 css-142zc9n"
...
@@ -799,7 +799,7 @@ exports[`PriceChart renders correctly with undefined prices 1`] = `
...
@@ -799,7 +799,7 @@ exports[`PriceChart renders correctly with undefined prices 1`] = `
<div
<div
class="c1 css-slqfkh"
class="c1 css-slqfkh"
>
>
Price
U
navailable
Price
u
navailable
</div>
</div>
<div
<div
class="c1 css-142zc9n"
class="c1 css-142zc9n"
...
...
src/components/Charts/PriceChart/index.test.tsx
View file @
71212f7e
...
@@ -42,7 +42,7 @@ describe('PriceChart', () => {
...
@@ -42,7 +42,7 @@ describe('PriceChart', () => {
it
(
'
renders correctly with empty price array
'
,
()
=>
{
it
(
'
renders correctly with empty price array
'
,
()
=>
{
const
{
asFragment
}
=
render
(<
PriceChart
prices=
{
[]
}
width=
{
780
}
height=
{
392
}
timePeriod=
{
TimePeriod
.
HOUR
}
/>)
const
{
asFragment
}
=
render
(<
PriceChart
prices=
{
[]
}
width=
{
780
}
height=
{
392
}
timePeriod=
{
TimePeriod
.
HOUR
}
/>)
expect
(
asFragment
()).
toMatchSnapshot
()
expect
(
asFragment
()).
toMatchSnapshot
()
expect
(
asFragment
().
textContent
).
toContain
(
'
Price
U
navailable
'
)
expect
(
asFragment
().
textContent
).
toContain
(
'
Price
u
navailable
'
)
expect
(
asFragment
().
textContent
).
toContain
(
'
Missing price data due to recently low trading volume on Uniswap v3
'
)
expect
(
asFragment
().
textContent
).
toContain
(
'
Missing price data due to recently low trading volume on Uniswap v3
'
)
})
})
it
(
'
renders correctly with undefined prices
'
,
()
=>
{
it
(
'
renders correctly with undefined prices
'
,
()
=>
{
...
@@ -50,7 +50,7 @@ describe('PriceChart', () => {
...
@@ -50,7 +50,7 @@ describe('PriceChart', () => {
<
PriceChart
prices=
{
undefined
}
width=
{
780
}
height=
{
392
}
timePeriod=
{
TimePeriod
.
HOUR
}
/>
<
PriceChart
prices=
{
undefined
}
width=
{
780
}
height=
{
392
}
timePeriod=
{
TimePeriod
.
HOUR
}
/>
)
)
expect
(
asFragment
()).
toMatchSnapshot
()
expect
(
asFragment
()).
toMatchSnapshot
()
expect
(
asFragment
().
textContent
).
toContain
(
'
Price
U
navailable
'
)
expect
(
asFragment
().
textContent
).
toContain
(
'
Price
u
navailable
'
)
expect
(
asFragment
().
textContent
).
toContain
(
'
Missing chart data
'
)
expect
(
asFragment
().
textContent
).
toContain
(
'
Missing chart data
'
)
})
})
it
(
'
renders stale UI
'
,
()
=>
{
it
(
'
renders stale UI
'
,
()
=>
{
...
...
src/components/Charts/PriceChart/index.tsx
View file @
71212f7e
...
@@ -248,7 +248,7 @@ function ChartBody({ chart, timePeriod }: { chart: ChartModel; timePeriod: TimeP
...
@@ -248,7 +248,7 @@ function ChartBody({ chart, timePeriod }: { chart: ChartModel; timePeriod: TimeP
const
CHART_ERROR_MESSAGES
:
Record
<
ChartErrorType
,
ReactNode
>
=
{
const
CHART_ERROR_MESSAGES
:
Record
<
ChartErrorType
,
ReactNode
>
=
{
[
ChartErrorType
.
NO_DATA_AVAILABLE
]:
<
Trans
>
Missing
chart
data
<
/Trans>
,
[
ChartErrorType
.
NO_DATA_AVAILABLE
]:
<
Trans
>
Missing
chart
data
<
/Trans>
,
[
ChartErrorType
.
NO_RECENT_VOLUME
]:
<
Trans
>
Missing
price
data
due
to
recently
low
trading
volume
on
Uniswap
v3
<
/Trans>
,
[
ChartErrorType
.
NO_RECENT_VOLUME
]:
<
Trans
>
Missing
price
data
due
to
recently
low
trading
volume
on
Uniswap
v3
<
/Trans>
,
[
ChartErrorType
.
INVALID_CHART
]:
<
Trans
>
Invalid
C
hart
<
/Trans>
,
[
ChartErrorType
.
INVALID_CHART
]:
<
Trans
>
Invalid
c
hart
<
/Trans>
,
}
}
function
MissingPriceChart
({
chart
}:
{
chart
:
ErroredChartModel
})
{
function
MissingPriceChart
({
chart
}:
{
chart
:
ErroredChartModel
})
{
...
@@ -259,7 +259,7 @@ function MissingPriceChart({ chart }: { chart: ErroredChartModel }) {
...
@@ -259,7 +259,7 @@ function MissingPriceChart({ chart }: { chart: ErroredChartModel }) {
<>
<>
<
ChartHeaderWrapper
data
-
cy=
"chart-header"
>
<
ChartHeaderWrapper
data
-
cy=
"chart-header"
>
<
ThemedText
.
HeadlineLarge
fontSize=
{
24
}
color=
"neutral3"
>
<
ThemedText
.
HeadlineLarge
fontSize=
{
24
}
color=
"neutral3"
>
Price
U
navailable
Price
u
navailable
</
ThemedText
.
HeadlineLarge
>
</
ThemedText
.
HeadlineLarge
>
<
ThemedText
.
BodySmall
color=
"neutral3"
>
{
CHART_ERROR_MESSAGES
[
chart
.
error
]
}
</
ThemedText
.
BodySmall
>
<
ThemedText
.
BodySmall
color=
"neutral3"
>
{
CHART_ERROR_MESSAGES
[
chart
.
error
]
}
</
ThemedText
.
BodySmall
>
</
ChartHeaderWrapper
>
</
ChartHeaderWrapper
>
...
...
src/components/ConnectedAccountBlocked/index.tsx
View file @
71212f7e
...
@@ -25,7 +25,7 @@ export default function ConnectedAccountBlocked(props: ConnectedAccountBlockedPr
...
@@ -25,7 +25,7 @@ export default function ConnectedAccountBlocked(props: ConnectedAccountBlockedPr
<
ContentWrapper
>
<
ContentWrapper
>
<
BlockedIcon
size=
"22px"
/>
<
BlockedIcon
size=
"22px"
/>
<
ThemedText
.
DeprecatedLargeHeader
lineHeight=
{
2
}
marginBottom=
{
1
}
marginTop=
{
1
}
>
<
ThemedText
.
DeprecatedLargeHeader
lineHeight=
{
2
}
marginBottom=
{
1
}
marginTop=
{
1
}
>
<
Trans
>
Blocked
A
ddress
</
Trans
>
<
Trans
>
Blocked
a
ddress
</
Trans
>
</
ThemedText
.
DeprecatedLargeHeader
>
</
ThemedText
.
DeprecatedLargeHeader
>
<
ThemedText
.
DeprecatedDarkGray
fontSize=
{
12
}
marginBottom=
{
12
}
>
<
ThemedText
.
DeprecatedDarkGray
fontSize=
{
12
}
marginBottom=
{
12
}
>
{
props
.
account
}
{
props
.
account
}
...
...
src/components/FiatOnrampModal/index.tsx
View file @
71212f7e
...
@@ -133,10 +133,10 @@ export default function FiatOnrampModal() {
...
@@ -133,10 +133,10 @@ export default function FiatOnrampModal() {
{
error
?
(
{
error
?
(
<>
<>
<
ThemedText
.
MediumHeader
>
<
ThemedText
.
MediumHeader
>
<
Trans
>
Moon
pay Fiat O
n-ramp iframe
</
Trans
>
<
Trans
>
Moon
Pay fiat o
n-ramp iframe
</
Trans
>
</
ThemedText
.
MediumHeader
>
</
ThemedText
.
MediumHeader
>
<
ErrorText
>
<
ErrorText
>
<
Trans
>
s
omething went wrong!
</
Trans
>
<
Trans
>
S
omething went wrong!
</
Trans
>
<
br
/>
<
br
/>
{
error
}
{
error
}
</
ErrorText
>
</
ErrorText
>
...
...
src/components/NavBar/SearchBarDropdown.tsx
View file @
71212f7e
...
@@ -284,7 +284,7 @@ function SearchBarDropdownContents({
...
@@ -284,7 +284,7 @@ function SearchBarDropdownContents({
suggestion_type
:
NavBarSearchTypes
.
COLLECTION_SUGGESTION
,
suggestion_type
:
NavBarSearchTypes
.
COLLECTION_SUGGESTION
,
...
eventProperties
,
...
eventProperties
,
}
}
}
}
header=
{
<
Trans
>
NFT
C
ollections
</
Trans
>
}
header=
{
<
Trans
>
NFT
c
ollections
</
Trans
>
}
/>
/>
)
:
(
)
:
(
<
Box
className=
{
styles
.
notFoundContainer
}
>
No NFT collections found.
</
Box
>
<
Box
className=
{
styles
.
notFoundContainer
}
>
No NFT collections found.
</
Box
>
...
...
src/components/NavigationTabs/index.tsx
View file @
71212f7e
...
@@ -51,7 +51,7 @@ export function FindPoolTabs({ origin }: { origin: string }) {
...
@@ -51,7 +51,7 @@ export function FindPoolTabs({ origin }: { origin: string }) {
<
StyledArrowLeft
/>
<
StyledArrowLeft
/>
</
Link
>
</
Link
>
<
FindPoolTabsText
>
<
FindPoolTabsText
>
<
Trans
>
Import V2
P
ool
</
Trans
>
<
Trans
>
Import V2
p
ool
</
Trans
>
</
FindPoolTabsText
>
</
FindPoolTabsText
>
</
RowBetween
>
</
RowBetween
>
</
Tabs
>
</
Tabs
>
...
@@ -108,9 +108,9 @@ export function AddRemoveTabs({
...
@@ -108,9 +108,9 @@ export function AddRemoveTabs({
{
creating
?
(
{
creating
?
(
<
Trans
>
Create a pair
</
Trans
>
<
Trans
>
Create a pair
</
Trans
>
)
:
adding
?
(
)
:
adding
?
(
<
Trans
>
Add
L
iquidity
</
Trans
>
<
Trans
>
Add
l
iquidity
</
Trans
>
)
:
(
)
:
(
<
Trans
>
Remove
L
iquidity
</
Trans
>
<
Trans
>
Remove
l
iquidity
</
Trans
>
)
}
)
}
</
AddRemoveTitleText
>
</
AddRemoveTitleText
>
{
children
&&
<
Box
style=
{
{
marginRight
:
'
.5rem
'
}
}
>
{
children
}
</
Box
>
}
{
children
&&
<
Box
style=
{
{
marginRight
:
'
.5rem
'
}
}
>
{
children
}
</
Box
>
}
...
...
src/components/Polling/ChainConnectivityWarning.tsx
View file @
71212f7e
...
@@ -59,7 +59,7 @@ export function ChainConnectivityWarning() {
...
@@ -59,7 +59,7 @@ export function ChainConnectivityWarning() {
<
TitleRow
>
<
TitleRow
>
<
CautionTriangle
/>
<
CautionTriangle
/>
<
TitleText
>
<
TitleText
>
<
Trans
>
Network
W
arning
</
Trans
>
<
Trans
>
Network
w
arning
</
Trans
>
</
TitleText
>
</
TitleText
>
</
TitleRow
>
</
TitleRow
>
<
BodyRow
>
<
BodyRow
>
...
...
src/components/PositionCard/index.tsx
View file @
71212f7e
...
@@ -346,7 +346,7 @@ export default function FullPositionCard({ pair, border, stakedBalance }: Positi
...
@@ -346,7 +346,7 @@ export default function FullPositionCard({ pair, border, stakedBalance }: Positi
to=
{
`/uni/${currencyId(currency0)}/${currencyId(currency1)}`
}
to=
{
`/uni/${currencyId(currency0)}/${currencyId(currency1)}`
}
width=
"100%"
width=
"100%"
>
>
<
Trans
>
Manage
Liquidity in Rewards P
ool
</
Trans
>
<
Trans
>
Manage
liquidity in rewards p
ool
</
Trans
>
</
ButtonPrimary
>
</
ButtonPrimary
>
)
}
)
}
</
AutoColumn
>
</
AutoColumn
>
...
...
src/components/PositionPreview/index.tsx
View file @
71212f7e
...
@@ -101,7 +101,7 @@ export const PositionPreview = ({
...
@@ -101,7 +101,7 @@ export const PositionPreview = ({
<
Break
/>
<
Break
/>
<
RowBetween
>
<
RowBetween
>
<
ThemedText
.
DeprecatedLabel
>
<
ThemedText
.
DeprecatedLabel
>
<
Trans
>
Fee
T
ier
</
Trans
>
<
Trans
>
Fee
t
ier
</
Trans
>
</
ThemedText
.
DeprecatedLabel
>
</
ThemedText
.
DeprecatedLabel
>
<
ThemedText
.
DeprecatedLabel
>
<
ThemedText
.
DeprecatedLabel
>
<
Trans
>
{
position
?.
pool
?.
fee
/
10000
}
%
</
Trans
>
<
Trans
>
{
position
?.
pool
?.
fee
/
10000
}
%
</
Trans
>
...
@@ -124,7 +124,7 @@ export const PositionPreview = ({
...
@@ -124,7 +124,7 @@ export const PositionPreview = ({
<
LightCard
width=
"48%"
padding=
"8px"
>
<
LightCard
width=
"48%"
padding=
"8px"
>
<
AutoColumn
gap=
"4px"
justify=
"center"
>
<
AutoColumn
gap=
"4px"
justify=
"center"
>
<
ThemedText
.
DeprecatedMain
fontSize=
"12px"
>
<
ThemedText
.
DeprecatedMain
fontSize=
"12px"
>
<
Trans
>
Min
P
rice
</
Trans
>
<
Trans
>
Min
p
rice
</
Trans
>
</
ThemedText
.
DeprecatedMain
>
</
ThemedText
.
DeprecatedMain
>
<
ThemedText
.
DeprecatedMediumHeader
textAlign=
"center"
>
<
ThemedText
.
DeprecatedMediumHeader
textAlign=
"center"
>
{
formatTickPrice
({
{
formatTickPrice
({
...
@@ -147,7 +147,7 @@ export const PositionPreview = ({
...
@@ -147,7 +147,7 @@ export const PositionPreview = ({
<
LightCard
width=
"48%"
padding=
"8px"
>
<
LightCard
width=
"48%"
padding=
"8px"
>
<
AutoColumn
gap=
"4px"
justify=
"center"
>
<
AutoColumn
gap=
"4px"
justify=
"center"
>
<
ThemedText
.
DeprecatedMain
fontSize=
"12px"
>
<
ThemedText
.
DeprecatedMain
fontSize=
"12px"
>
<
Trans
>
Max
P
rice
</
Trans
>
<
Trans
>
Max
p
rice
</
Trans
>
</
ThemedText
.
DeprecatedMain
>
</
ThemedText
.
DeprecatedMain
>
<
ThemedText
.
DeprecatedMediumHeader
textAlign=
"center"
>
<
ThemedText
.
DeprecatedMediumHeader
textAlign=
"center"
>
{
formatTickPrice
({
{
formatTickPrice
({
...
...
src/components/RangeSelector/PresetsButtons.tsx
View file @
71212f7e
...
@@ -21,7 +21,7 @@ export default function PresetsButtons({ onSetFullRange }: PresetsButtonsProps)
...
@@ -21,7 +21,7 @@ export default function PresetsButtons({ onSetFullRange }: PresetsButtonsProps)
<
AutoRow
gap=
"4px"
width=
"auto"
>
<
AutoRow
gap=
"4px"
width=
"auto"
>
<
Button
data
-
testid=
"set-full-range"
onClick=
{
onSetFullRange
}
>
<
Button
data
-
testid=
"set-full-range"
onClick=
{
onSetFullRange
}
>
<
ThemedText
.
DeprecatedBody
fontSize=
{
12
}
>
<
ThemedText
.
DeprecatedBody
fontSize=
{
12
}
>
<
Trans
>
Full
R
ange
</
Trans
>
<
Trans
>
Full
r
ange
</
Trans
>
</
ThemedText
.
DeprecatedBody
>
</
ThemedText
.
DeprecatedBody
>
</
Button
>
</
Button
>
</
AutoRow
>
</
AutoRow
>
...
...
src/components/TransactionConfirmationModal/index.tsx
View file @
71212f7e
...
@@ -256,7 +256,7 @@ function L2Content({
...
@@ -256,7 +256,7 @@ function L2Content({
{
!
hash
?
(
{
!
hash
?
(
<
Trans
>
Confirm transaction in wallet
</
Trans
>
<
Trans
>
Confirm transaction in wallet
</
Trans
>
)
:
!
confirmed
?
(
)
:
!
confirmed
?
(
<
Trans
>
Transaction
S
ubmitted
</
Trans
>
<
Trans
>
Transaction
s
ubmitted
</
Trans
>
)
:
transactionSuccess
?
(
)
:
transactionSuccess
?
(
<
Trans
>
Success
</
Trans
>
<
Trans
>
Success
</
Trans
>
)
:
(
)
:
(
...
...
src/components/WalletModal/ConnectionErrorView.tsx
View file @
71212f7e
...
@@ -43,7 +43,7 @@ export default function ConnectionErrorView() {
...
@@ -43,7 +43,7 @@ export default function ConnectionErrorView() {
</
Trans
>
</
Trans
>
</
ThemedText
.
BodyPrimary
>
</
ThemedText
.
BodyPrimary
>
<
ButtonPrimary
$borderRadius=
"16px"
onClick=
{
retry
}
>
<
ButtonPrimary
$borderRadius=
"16px"
onClick=
{
retry
}
>
<
Trans
>
Try
A
gain
</
Trans
>
<
Trans
>
Try
a
gain
</
Trans
>
</
ButtonPrimary
>
</
ButtonPrimary
>
<
ButtonEmpty
width=
"fit-content"
padding=
"0"
marginTop=
{
20
}
>
<
ButtonEmpty
width=
"fit-content"
padding=
"0"
marginTop=
{
20
}
>
<
ThemedText
.
Link
onClick=
{
cancelActivation
}
marginBottom=
{
12
}
>
<
ThemedText
.
Link
onClick=
{
cancelActivation
}
marginBottom=
{
12
}
>
...
...
src/components/WalletModal/PrivacyPolicyNotice.tsx
View file @
71212f7e
...
@@ -26,7 +26,7 @@ export default function PrivacyPolicyNotice() {
...
@@ -26,7 +26,7 @@ export default function PrivacyPolicyNotice() {
</
StyledLink
>
</
StyledLink
>
<
LastUpdatedText
>
<
LastUpdatedText
>
{
'
(
'
}
{
'
(
'
}
<
Trans
>
Last
U
pdated
</
Trans
>
<
Trans
>
Last
u
pdated
</
Trans
>
{
` ${LAST_UPDATED_DATE})`
}
{
` ${LAST_UPDATED_DATE})`
}
</
LastUpdatedText
>
</
LastUpdatedText
>
</
ThemedText
.
BodySmall
>
</
ThemedText
.
BodySmall
>
...
...
src/components/claim/AddressClaimModal.tsx
View file @
71212f7e
...
@@ -104,7 +104,7 @@ export default function AddressClaimModal({ isOpen, onDismiss }: { isOpen: boole
...
@@ -104,7 +104,7 @@ export default function AddressClaimModal({ isOpen, onDismiss }: { isOpen: boole
<
CardSection
gap=
"md"
>
<
CardSection
gap=
"md"
>
<
RowBetween
>
<
RowBetween
>
<
ThemedText
.
DeprecatedWhite
fontWeight=
{
535
}
>
<
ThemedText
.
DeprecatedWhite
fontWeight=
{
535
}
>
<
Trans
>
Claim UNI
T
oken
</
Trans
>
<
Trans
>
Claim UNI
t
oken
</
Trans
>
</
ThemedText
.
DeprecatedWhite
>
</
ThemedText
.
DeprecatedWhite
>
<
CloseIcon
onClick=
{
wrappedOnDismiss
}
style=
{
{
zIndex
:
99
}
}
stroke=
"white"
/>
<
CloseIcon
onClick=
{
wrappedOnDismiss
}
style=
{
{
zIndex
:
99
}
}
stroke=
"white"
/>
</
RowBetween
>
</
RowBetween
>
...
...
src/components/swap/UnsupportedCurrencyFooter.test.tsx
View file @
71212f7e
...
@@ -29,7 +29,7 @@ describe('UnsupportedCurrencyFooter.tsx with unsupported tokens', () => {
...
@@ -29,7 +29,7 @@ describe('UnsupportedCurrencyFooter.tsx with unsupported tokens', () => {
it
(
'
works as expected when one unsupported token exists
'
,
async
()
=>
{
it
(
'
works as expected when one unsupported token exists
'
,
async
()
=>
{
const
rendered
=
render
(<
UnsupportedCurrencyFooter
show=
{
true
}
currencies=
{
[
unsupportedToken
]
}
/>)
const
rendered
=
render
(<
UnsupportedCurrencyFooter
show=
{
true
}
currencies=
{
[
unsupportedToken
]
}
/>)
await
act
(()
=>
userEvent
.
click
(
screen
.
getByTestId
(
'
read-more-button
'
)))
await
act
(()
=>
userEvent
.
click
(
screen
.
getByTestId
(
'
read-more-button
'
)))
expect
(
screen
.
getByText
(
'
Unsupported
A
ssets
'
)).
toBeInTheDocument
()
expect
(
screen
.
getByText
(
'
Unsupported
a
ssets
'
)).
toBeInTheDocument
()
expect
(
expect
(
screen
.
getByText
((
content
)
=>
content
.
startsWith
(
'
Some assets are not available through this interface
'
))
screen
.
getByText
((
content
)
=>
content
.
startsWith
(
'
Some assets are not available through this interface
'
))
).
toBeInTheDocument
()
).
toBeInTheDocument
()
...
@@ -58,14 +58,14 @@ describe('UnsupportedCurrencyFooter.tsx with no unsupported tokens', () => {
...
@@ -58,14 +58,14 @@ describe('UnsupportedCurrencyFooter.tsx with no unsupported tokens', () => {
it
(
'
works as expected when no unsupported tokens exist
'
,
async
()
=>
{
it
(
'
works as expected when no unsupported tokens exist
'
,
async
()
=>
{
const
rendered
=
render
(<
UnsupportedCurrencyFooter
show=
{
true
}
currencies=
{
[
unsupportedToken
]
}
/>)
const
rendered
=
render
(<
UnsupportedCurrencyFooter
show=
{
true
}
currencies=
{
[
unsupportedToken
]
}
/>)
await
act
(()
=>
userEvent
.
click
(
screen
.
getByTestId
(
'
read-more-button
'
)))
await
act
(()
=>
userEvent
.
click
(
screen
.
getByTestId
(
'
read-more-button
'
)))
expect
(
screen
.
getByText
(
'
Unsupported
A
ssets
'
)).
toBeInTheDocument
()
expect
(
screen
.
getByText
(
'
Unsupported
a
ssets
'
)).
toBeInTheDocument
()
expect
(
expect
(
screen
.
getByText
((
content
)
=>
content
.
startsWith
(
'
Some assets are not available through this interface
'
))
screen
.
getByText
((
content
)
=>
content
.
startsWith
(
'
Some assets are not available through this interface
'
))
).
toBeInTheDocument
()
).
toBeInTheDocument
()
expect
(
rendered
.
queryByTestId
(
'
unsupported-token-card
'
)).
toBeNull
()
expect
(
rendered
.
queryByTestId
(
'
unsupported-token-card
'
)).
toBeNull
()
await
act
(()
=>
userEvent
.
click
(
screen
.
getByTestId
(
'
close-icon
'
)))
await
act
(()
=>
userEvent
.
click
(
screen
.
getByTestId
(
'
close-icon
'
)))
await
waitForElementToBeRemoved
(
screen
.
getByText
(
'
Unsupported
A
ssets
'
))
await
waitForElementToBeRemoved
(
screen
.
getByText
(
'
Unsupported
a
ssets
'
))
expect
(
rendered
.
queryByText
(
'
Unsupported
A
ssets
'
)).
toBeNull
()
expect
(
rendered
.
queryByText
(
'
Unsupported
a
ssets
'
)).
toBeNull
()
expect
(
expect
(
rendered
.
queryByText
((
content
)
=>
content
.
startsWith
(
'
Some assets are not available through this interface
'
))
rendered
.
queryByText
((
content
)
=>
content
.
startsWith
(
'
Some assets are not available through this interface
'
))
).
toBeNull
()
).
toBeNull
()
...
...
src/components/swap/UnsupportedCurrencyFooter.tsx
View file @
71212f7e
...
@@ -72,7 +72,7 @@ export default function UnsupportedCurrencyFooter({
...
@@ -72,7 +72,7 @@ export default function UnsupportedCurrencyFooter({
<
AutoColumn
gap=
"lg"
>
<
AutoColumn
gap=
"lg"
>
<
RowBetween
>
<
RowBetween
>
<
ThemedText
.
DeprecatedMediumHeader
>
<
ThemedText
.
DeprecatedMediumHeader
>
<
Trans
>
Unsupported
A
ssets
</
Trans
>
<
Trans
>
Unsupported
a
ssets
</
Trans
>
</
ThemedText
.
DeprecatedMediumHeader
>
</
ThemedText
.
DeprecatedMediumHeader
>
<
CloseIcon
onClick=
{
()
=>
setShowDetails
(
false
)
}
data
-
testid=
"close-icon"
/>
<
CloseIcon
onClick=
{
()
=>
setShowDetails
(
false
)
}
data
-
testid=
"close-icon"
/>
</
RowBetween
>
</
RowBetween
>
...
...
src/components/vote/DelegateModal.tsx
View file @
71212f7e
...
@@ -107,12 +107,12 @@ export default function DelegateModal({ isOpen, onDismiss, title }: VoteModalPro
...
@@ -107,12 +107,12 @@ export default function DelegateModal({ isOpen, onDismiss, title }: VoteModalPro
{
usingDelegate
&&
<
AddressInputPanel
value=
{
typed
}
onChange=
{
handleRecipientType
}
/>
}
{
usingDelegate
&&
<
AddressInputPanel
value=
{
typed
}
onChange=
{
handleRecipientType
}
/>
}
<
ButtonPrimary
disabled=
{
!
isAddress
(
parsedAddress
??
''
)
}
onClick=
{
onDelegate
}
>
<
ButtonPrimary
disabled=
{
!
isAddress
(
parsedAddress
??
''
)
}
onClick=
{
onDelegate
}
>
<
ThemedText
.
DeprecatedMediumHeader
color=
"white"
>
<
ThemedText
.
DeprecatedMediumHeader
color=
"white"
>
{
usingDelegate
?
<
Trans
>
Delegate
Votes
</
Trans
>
:
<
Trans
>
Self D
elegate
</
Trans
>
}
{
usingDelegate
?
<
Trans
>
Delegate
votes
</
Trans
>
:
<
Trans
>
Self-d
elegate
</
Trans
>
}
</
ThemedText
.
DeprecatedMediumHeader
>
</
ThemedText
.
DeprecatedMediumHeader
>
</
ButtonPrimary
>
</
ButtonPrimary
>
<
TextButton
onClick=
{
()
=>
setUsingDelegate
(
!
usingDelegate
)
}
>
<
TextButton
onClick=
{
()
=>
setUsingDelegate
(
!
usingDelegate
)
}
>
<
ThemedText
.
DeprecatedBlue
>
<
ThemedText
.
DeprecatedBlue
>
{
usingDelegate
?
<
Trans
>
Remove
Delegate
</
Trans
>
:
<
Trans
>
Add D
elegate +
</
Trans
>
}
{
usingDelegate
?
<
Trans
>
Remove
delegate
</
Trans
>
:
<
Trans
>
Add d
elegate +
</
Trans
>
}
</
ThemedText
.
DeprecatedBlue
>
</
ThemedText
.
DeprecatedBlue
>
</
TextButton
>
</
TextButton
>
</
AutoColumn
>
</
AutoColumn
>
...
@@ -122,7 +122,7 @@ export default function DelegateModal({ isOpen, onDismiss, title }: VoteModalPro
...
@@ -122,7 +122,7 @@ export default function DelegateModal({ isOpen, onDismiss, title }: VoteModalPro
<
LoadingView
onDismiss=
{
wrappedOnDismiss
}
>
<
LoadingView
onDismiss=
{
wrappedOnDismiss
}
>
<
AutoColumn
gap=
"md"
justify=
"center"
>
<
AutoColumn
gap=
"md"
justify=
"center"
>
<
ThemedText
.
DeprecatedLargeHeader
>
<
ThemedText
.
DeprecatedLargeHeader
>
{
usingDelegate
?
<
Trans
>
Delegating votes
</
Trans
>
:
<
Trans
>
Unlocking
V
otes
</
Trans
>
}
{
usingDelegate
?
<
Trans
>
Delegating votes
</
Trans
>
:
<
Trans
>
Unlocking
v
otes
</
Trans
>
}
</
ThemedText
.
DeprecatedLargeHeader
>
</
ThemedText
.
DeprecatedLargeHeader
>
<
ThemedText
.
DeprecatedMain
fontSize=
{
36
}
>
{
formatCurrencyAmount
(
uniBalance
,
4
)
}
</
ThemedText
.
DeprecatedMain
>
<
ThemedText
.
DeprecatedMain
fontSize=
{
36
}
>
{
formatCurrencyAmount
(
uniBalance
,
4
)
}
</
ThemedText
.
DeprecatedMain
>
</
AutoColumn
>
</
AutoColumn
>
...
@@ -132,7 +132,7 @@ export default function DelegateModal({ isOpen, onDismiss, title }: VoteModalPro
...
@@ -132,7 +132,7 @@ export default function DelegateModal({ isOpen, onDismiss, title }: VoteModalPro
<
SubmittedView
onDismiss=
{
wrappedOnDismiss
}
hash=
{
hash
}
>
<
SubmittedView
onDismiss=
{
wrappedOnDismiss
}
hash=
{
hash
}
>
<
AutoColumn
gap=
"md"
justify=
"center"
>
<
AutoColumn
gap=
"md"
justify=
"center"
>
<
ThemedText
.
DeprecatedLargeHeader
>
<
ThemedText
.
DeprecatedLargeHeader
>
<
Trans
>
Transaction
S
ubmitted
</
Trans
>
<
Trans
>
Transaction
s
ubmitted
</
Trans
>
</
ThemedText
.
DeprecatedLargeHeader
>
</
ThemedText
.
DeprecatedLargeHeader
>
<
ThemedText
.
DeprecatedMain
fontSize=
{
36
}
>
{
formatCurrencyAmount
(
uniBalance
,
4
)
}
</
ThemedText
.
DeprecatedMain
>
<
ThemedText
.
DeprecatedMain
fontSize=
{
36
}
>
{
formatCurrencyAmount
(
uniBalance
,
4
)
}
</
ThemedText
.
DeprecatedMain
>
</
AutoColumn
>
</
AutoColumn
>
...
...
src/components/vote/ExecuteModal.tsx
View file @
71212f7e
...
@@ -82,7 +82,7 @@ export default function ExecuteModal({ isOpen, onDismiss, proposalId }: ExecuteM
...
@@ -82,7 +82,7 @@ export default function ExecuteModal({ isOpen, onDismiss, proposalId }: ExecuteM
<
AutoColumn
gap=
"lg"
justify=
"center"
>
<
AutoColumn
gap=
"lg"
justify=
"center"
>
<
RowBetween
>
<
RowBetween
>
<
ThemedText
.
DeprecatedMediumHeader
fontWeight=
{
535
}
>
<
ThemedText
.
DeprecatedMediumHeader
fontWeight=
{
535
}
>
<
Trans
>
Execute
P
roposal
{
proposalId
}
</
Trans
>
<
Trans
>
Execute
p
roposal
{
proposalId
}
</
Trans
>
</
ThemedText
.
DeprecatedMediumHeader
>
</
ThemedText
.
DeprecatedMediumHeader
>
<
StyledClosed
onClick=
{
wrappedOnDismiss
}
/>
<
StyledClosed
onClick=
{
wrappedOnDismiss
}
/>
</
RowBetween
>
</
RowBetween
>
...
@@ -132,7 +132,7 @@ export default function ExecuteModal({ isOpen, onDismiss, proposalId }: ExecuteM
...
@@ -132,7 +132,7 @@ export default function ExecuteModal({ isOpen, onDismiss, proposalId }: ExecuteM
<
AutoColumn
gap=
"100px"
justify=
"center"
>
<
AutoColumn
gap=
"100px"
justify=
"center"
>
<
AutoColumn
gap=
"md"
justify=
"center"
>
<
AutoColumn
gap=
"md"
justify=
"center"
>
<
ThemedText
.
DeprecatedLargeHeader
>
<
ThemedText
.
DeprecatedLargeHeader
>
<
Trans
>
Execution
S
ubmitted
</
Trans
>
<
Trans
>
Execution
s
ubmitted
</
Trans
>
</
ThemedText
.
DeprecatedLargeHeader
>
</
ThemedText
.
DeprecatedLargeHeader
>
</
AutoColumn
>
</
AutoColumn
>
{
chainId
&&
(
{
chainId
&&
(
...
...
src/components/vote/QueueModal.tsx
View file @
71212f7e
...
@@ -82,7 +82,7 @@ export default function QueueModal({ isOpen, onDismiss, proposalId }: QueueModal
...
@@ -82,7 +82,7 @@ export default function QueueModal({ isOpen, onDismiss, proposalId }: QueueModal
<
AutoColumn
gap=
"lg"
justify=
"center"
>
<
AutoColumn
gap=
"lg"
justify=
"center"
>
<
RowBetween
>
<
RowBetween
>
<
ThemedText
.
DeprecatedMediumHeader
fontWeight=
{
535
}
>
<
ThemedText
.
DeprecatedMediumHeader
fontWeight=
{
535
}
>
<
Trans
>
Queue
P
roposal
{
proposalId
}
</
Trans
>
<
Trans
>
Queue
p
roposal
{
proposalId
}
</
Trans
>
</
ThemedText
.
DeprecatedMediumHeader
>
</
ThemedText
.
DeprecatedMediumHeader
>
<
StyledClosed
onClick=
{
wrappedOnDismiss
}
/>
<
StyledClosed
onClick=
{
wrappedOnDismiss
}
/>
</
RowBetween
>
</
RowBetween
>
...
@@ -132,7 +132,7 @@ export default function QueueModal({ isOpen, onDismiss, proposalId }: QueueModal
...
@@ -132,7 +132,7 @@ export default function QueueModal({ isOpen, onDismiss, proposalId }: QueueModal
<
AutoColumn
gap=
"100px"
justify=
"center"
>
<
AutoColumn
gap=
"100px"
justify=
"center"
>
<
AutoColumn
gap=
"md"
justify=
"center"
>
<
AutoColumn
gap=
"md"
justify=
"center"
>
<
ThemedText
.
DeprecatedLargeHeader
>
<
ThemedText
.
DeprecatedLargeHeader
>
<
Trans
>
Transaction
S
ubmitted
</
Trans
>
<
Trans
>
Transaction
s
ubmitted
</
Trans
>
</
ThemedText
.
DeprecatedLargeHeader
>
</
ThemedText
.
DeprecatedLargeHeader
>
</
AutoColumn
>
</
AutoColumn
>
{
chainId
&&
(
{
chainId
&&
(
...
...
src/components/vote/VoteModal.tsx
View file @
71212f7e
...
@@ -125,7 +125,7 @@ export default function VoteModal({ isOpen, onDismiss, proposalId, voteOption }:
...
@@ -125,7 +125,7 @@ export default function VoteModal({ isOpen, onDismiss, proposalId, voteOption }:
<
AutoColumn
gap=
"100px"
justify=
"center"
>
<
AutoColumn
gap=
"100px"
justify=
"center"
>
<
AutoColumn
gap=
"md"
justify=
"center"
>
<
AutoColumn
gap=
"md"
justify=
"center"
>
<
ThemedText
.
DeprecatedLargeHeader
>
<
ThemedText
.
DeprecatedLargeHeader
>
<
Trans
>
Submitting
V
ote
</
Trans
>
<
Trans
>
Submitting
v
ote
</
Trans
>
</
ThemedText
.
DeprecatedLargeHeader
>
</
ThemedText
.
DeprecatedLargeHeader
>
</
AutoColumn
>
</
AutoColumn
>
<
ThemedText
.
DeprecatedSubHeader
>
<
ThemedText
.
DeprecatedSubHeader
>
...
...
src/constants/tokenSafety.tsx
View file @
71212f7e
...
@@ -74,7 +74,7 @@ const StrongWarning: Warning = {
...
@@ -74,7 +74,7 @@ const StrongWarning: Warning = {
const
BlockedWarning
:
Warning
=
{
const
BlockedWarning
:
Warning
=
{
level
:
WARNING_LEVEL
.
BLOCKED
,
level
:
WARNING_LEVEL
.
BLOCKED
,
message
:
<
Trans
>
Not
A
vailable
</
Trans
>,
message
:
<
Trans
>
Not
a
vailable
</
Trans
>,
canProceed
:
false
,
canProceed
:
false
,
}
}
...
...
src/nft/components/bag/BagFooter.test.tsx
View file @
71212f7e
...
@@ -301,7 +301,7 @@ describe('BagFooter.tsx', () => {
...
@@ -301,7 +301,7 @@ describe('BagFooter.tsx', () => {
renderBagFooter
()
renderBagFooter
()
const
buyButton
=
getBuyButton
()
const
buyButton
=
getBuyButton
()
expect
(
buyButton
.
textContent
).
toBe
(
'
Fetching
R
oute
'
)
expect
(
buyButton
.
textContent
).
toBe
(
'
Fetching
r
oute
'
)
expect
(
buyButton
).
toBeDisabled
()
expect
(
buyButton
).
toBeDisabled
()
})
})
...
@@ -329,7 +329,7 @@ describe('BagFooter.tsx', () => {
...
@@ -329,7 +329,7 @@ describe('BagFooter.tsx', () => {
renderBagFooter
()
renderBagFooter
()
const
buyButton
=
getBuyButton
()
const
buyButton
=
getBuyButton
()
expect
(
buyButton
.
textContent
).
toBe
(
'
Loading
A
llowance
'
)
expect
(
buyButton
.
textContent
).
toBe
(
'
Loading
a
llowance
'
)
expect
(
buyButton
).
toBeDisabled
()
expect
(
buyButton
).
toBeDisabled
()
})
})
...
...
src/nft/components/bag/ButtonStates.tsx
View file @
71212f7e
...
@@ -86,7 +86,7 @@ export function getBuyButtonStateData(
...
@@ -86,7 +86,7 @@ export function getBuyButtonStateData(
},
},
[
BuyButtonStates
.
FETCHING_TOKEN_ROUTE
]:
{
[
BuyButtonStates
.
FETCHING_TOKEN_ROUTE
]:
{
...
defaultBuyButtonState
,
...
defaultBuyButtonState
,
buttonText
:
<
Trans
>
Fetching
R
oute
</
Trans
>,
buttonText
:
<
Trans
>
Fetching
r
oute
</
Trans
>,
},
},
[
BuyButtonStates
.
INVALID_TOKEN_ROUTE
]:
{
[
BuyButtonStates
.
INVALID_TOKEN_ROUTE
]:
{
...
defaultBuyButtonState
,
...
defaultBuyButtonState
,
...
@@ -101,7 +101,7 @@ export function getBuyButtonStateData(
...
@@ -101,7 +101,7 @@ export function getBuyButtonStateData(
},
},
[
BuyButtonStates
.
LOADING_ALLOWANCE
]:
{
[
BuyButtonStates
.
LOADING_ALLOWANCE
]:
{
...
defaultBuyButtonState
,
...
defaultBuyButtonState
,
buttonText
:
<
Trans
>
Loading
A
llowance
</
Trans
>,
buttonText
:
<
Trans
>
Loading
a
llowance
</
Trans
>,
},
},
[
BuyButtonStates
.
IN_WALLET_ALLOWANCE_APPROVAL
]:
{
[
BuyButtonStates
.
IN_WALLET_ALLOWANCE_APPROVAL
]:
{
...
defaultBuyButtonState
,
...
defaultBuyButtonState
,
...
...
src/nft/components/profile/list/NFTListingsGrid.tsx
View file @
71212f7e
...
@@ -199,10 +199,10 @@ export const NFTListingsGrid = ({ selectedMarkets }: { selectedMarkets: ListingM
...
@@ -199,10 +199,10 @@ export const NFTListingsGrid = ({ selectedMarkets }: { selectedMarkets: ListingM
prompt
=
<
Trans
>
Floor price
</
Trans
>
prompt
=
<
Trans
>
Floor price
</
Trans
>
break
break
case
SetPriceMethod
.
LAST_PRICE
:
case
SetPriceMethod
.
LAST_PRICE
:
prompt
=
<
Trans
>
Last
P
rice
</
Trans
>
prompt
=
<
Trans
>
Last
p
rice
</
Trans
>
break
break
case
SetPriceMethod
.
SAME_PRICE
:
case
SetPriceMethod
.
SAME_PRICE
:
prompt
=
<
Trans
>
Same
P
rice
</
Trans
>
prompt
=
<
Trans
>
Same
p
rice
</
Trans
>
break
break
default
:
default
:
break
break
...
...
src/nft/pages/profile/index.tsx
View file @
71212f7e
...
@@ -94,7 +94,7 @@ export default function Profile() {
...
@@ -94,7 +94,7 @@ export default function Profile() {
</
ThemedText
.
HeadlineMedium
>
</
ThemedText
.
HeadlineMedium
>
<
ConnectWalletButton
onClick=
{
toggleWalletDrawer
}
>
<
ConnectWalletButton
onClick=
{
toggleWalletDrawer
}
>
<
ThemedText
.
SubHeader
color=
"white"
lineHeight=
"20px"
>
<
ThemedText
.
SubHeader
color=
"white"
lineHeight=
"20px"
>
<
Trans
>
Connect
W
allet
</
Trans
>
<
Trans
>
Connect
w
allet
</
Trans
>
</
ThemedText
.
SubHeader
>
</
ThemedText
.
SubHeader
>
</
ConnectWalletButton
>
</
ConnectWalletButton
>
</
Center
>
</
Center
>
...
...
src/pages/AddLiquidity/index.tsx
View file @
71212f7e
...
@@ -483,7 +483,7 @@ function AddLiquidity() {
...
@@ -483,7 +483,7 @@ function AddLiquidity() {
element={InterfaceElementName.CONNECT_WALLET_BUTTON}
element={InterfaceElementName.CONNECT_WALLET_BUTTON}
>
>
<ButtonLight onClick={toggleWalletDrawer} $borderRadius="12px" padding="12px">
<ButtonLight onClick={toggleWalletDrawer} $borderRadius="12px" padding="12px">
<Trans>Connect
W
allet</Trans>
<Trans>Connect
w
allet</Trans>
</ButtonLight>
</ButtonLight>
</TraceEvent>
</TraceEvent>
) : (
) : (
...
@@ -611,7 +611,7 @@ function AddLiquidity() {
...
@@ -611,7 +611,7 @@ function AddLiquidity() {
<MediumOnly>
<MediumOnly>
<ButtonText onClick={clearAll}>
<ButtonText onClick={clearAll}>
<ThemedText.DeprecatedBlue fontSize="12px">
<ThemedText.DeprecatedBlue fontSize="12px">
<Trans>Clear
A
ll</Trans>
<Trans>Clear
a
ll</Trans>
</ThemedText.DeprecatedBlue>
</ThemedText.DeprecatedBlue>
</ButtonText>
</ButtonText>
</MediumOnly>
</MediumOnly>
...
@@ -626,7 +626,7 @@ function AddLiquidity() {
...
@@ -626,7 +626,7 @@ function AddLiquidity() {
<AutoColumn gap="md">
<AutoColumn gap="md">
<RowBetween paddingBottom="20px">
<RowBetween paddingBottom="20px">
<ThemedText.DeprecatedLabel>
<ThemedText.DeprecatedLabel>
<Trans>Select
P
air</Trans>
<Trans>Select
p
air</Trans>
</ThemedText.DeprecatedLabel>
</ThemedText.DeprecatedLabel>
</RowBetween>
</RowBetween>
<RowBetween gap="md">
<RowBetween gap="md">
...
@@ -672,7 +672,7 @@ function AddLiquidity() {
...
@@ -672,7 +672,7 @@ function AddLiquidity() {
{hasExistingPosition && existingPosition && (
{hasExistingPosition && existingPosition && (
<PositionPreview
<PositionPreview
position={existingPosition}
position={existingPosition}
title={<Trans>Selected
R
ange</Trans>}
title={<Trans>Selected
r
ange</Trans>}
inRange={!outOfRange}
inRange={!outOfRange}
ticksAtLimit={ticksAtLimit}
ticksAtLimit={ticksAtLimit}
/>
/>
...
@@ -684,7 +684,7 @@ function AddLiquidity() {
...
@@ -684,7 +684,7 @@ function AddLiquidity() {
<DynamicSection gap="md" disabled={!feeAmount || invalidPool}>
<DynamicSection gap="md" disabled={!feeAmount || invalidPool}>
<RowBetween>
<RowBetween>
<ThemedText.DeprecatedLabel>
<ThemedText.DeprecatedLabel>
<Trans>Set
Price R
ange</Trans>
<Trans>Set
price r
ange</Trans>
</ThemedText.DeprecatedLabel>
</ThemedText.DeprecatedLabel>
{Boolean(baseCurrency && quoteCurrency) && (
{Boolean(baseCurrency && quoteCurrency) && (
...
@@ -762,7 +762,7 @@ function AddLiquidity() {
...
@@ -762,7 +762,7 @@ function AddLiquidity() {
<AutoColumn gap="2px" style={{ marginTop: '0.5rem' }}>
<AutoColumn gap="2px" style={{ marginTop: '0.5rem' }}>
<Trans>
<Trans>
<ThemedText.DeprecatedMain fontWeight={535} fontSize={12} color="text1">
<ThemedText.DeprecatedMain fontWeight={535} fontSize={12} color="text1">
Current
P
rice:
Current
p
rice:
</ThemedText.DeprecatedMain>
</ThemedText.DeprecatedMain>
<ThemedText.DeprecatedBody fontWeight={535} fontSize={20} color="text1">
<ThemedText.DeprecatedBody fontWeight={535} fontSize={20} color="text1">
{price && (
{price && (
...
@@ -864,7 +864,7 @@ function AddLiquidity() {
...
@@ -864,7 +864,7 @@ function AddLiquidity() {
<DynamicSection disabled={invalidPool || invalidRange || (noLiquidity && !startPriceTypedValue)}>
<DynamicSection disabled={invalidPool || invalidRange || (noLiquidity && !startPriceTypedValue)}>
<AutoColumn gap="md">
<AutoColumn gap="md">
<ThemedText.DeprecatedLabel>
<ThemedText.DeprecatedLabel>
{hasExistingPosition ? <Trans>Add more liquidity</Trans> : <Trans>Deposit
A
mounts</Trans>}
{hasExistingPosition ? <Trans>Add more liquidity</Trans> : <Trans>Deposit
a
mounts</Trans>}
</ThemedText.DeprecatedLabel>
</ThemedText.DeprecatedLabel>
<CurrencyInputPanel
<CurrencyInputPanel
...
...
src/pages/AddLiquidityV2/ConfirmAddModalBottom.tsx
View file @
71212f7e
...
@@ -70,7 +70,7 @@ export function ConfirmAddModalBottom({
...
@@ -70,7 +70,7 @@ export function ConfirmAddModalBottom({
</
RowBetween
>
</
RowBetween
>
<
ButtonPrimary
style=
{
{
margin
:
'
20px 0 0 0
'
}
}
onClick=
{
onAdd
}
>
<
ButtonPrimary
style=
{
{
margin
:
'
20px 0 0 0
'
}
}
onClick=
{
onAdd
}
>
<
Text
fontWeight=
{
535
}
fontSize=
{
20
}
>
<
Text
fontWeight=
{
535
}
fontSize=
{
20
}
>
{
noLiquidity
?
<
Trans
>
Create
Pool
&
Supply
</
Trans
>
:
<
Trans
>
Confirm S
upply
</
Trans
>
}
{
noLiquidity
?
<
Trans
>
Create
pool
&
supply
</
Trans
>
:
<
Trans
>
Confirm s
upply
</
Trans
>
}
</
Text
>
</
Text
>
</
ButtonPrimary
>
</
ButtonPrimary
>
</>
</>
...
...
src/pages/AddLiquidityV2/PoolPriceBar.tsx
View file @
71212f7e
...
@@ -58,7 +58,7 @@ export function PoolPriceBar({
...
@@ -58,7 +58,7 @@ export function PoolPriceBar({
%
%
</
ThemedText
.
DeprecatedBlack
>
</
ThemedText
.
DeprecatedBlack
>
<
Text
fontWeight=
{
535
}
fontSize=
{
14
}
color=
{
theme
.
neutral2
}
pt=
{
1
}
>
<
Text
fontWeight=
{
535
}
fontSize=
{
14
}
color=
{
theme
.
neutral2
}
pt=
{
1
}
>
<
Trans
>
Share of
P
ool
</
Trans
>
<
Trans
>
Share of
p
ool
</
Trans
>
</
Text
>
</
Text
>
</
AutoColumn
>
</
AutoColumn
>
</
AutoRow
>
</
AutoRow
>
...
...
src/pages/AddLiquidityV2/index.tsx
View file @
71212f7e
...
@@ -443,7 +443,7 @@ export default function AddLiquidity() {
...
@@ -443,7 +443,7 @@ export default function AddLiquidity() {
{
addIsUnsupported
?
(
{
addIsUnsupported
?
(
<
ButtonPrimary
disabled=
{
true
}
>
<
ButtonPrimary
disabled=
{
true
}
>
<
ThemedText
.
DeprecatedMain
mb=
"4px"
>
<
ThemedText
.
DeprecatedMain
mb=
"4px"
>
<
Trans
>
Unsupported
A
sset
</
Trans
>
<
Trans
>
Unsupported
a
sset
</
Trans
>
</
ThemedText
.
DeprecatedMain
>
</
ThemedText
.
DeprecatedMain
>
</
ButtonPrimary
>
</
ButtonPrimary
>
)
:
!
account
?
(
)
:
!
account
?
(
...
@@ -454,7 +454,7 @@ export default function AddLiquidity() {
...
@@ -454,7 +454,7 @@ export default function AddLiquidity() {
element=
{
InterfaceElementName
.
CONNECT_WALLET_BUTTON
}
element=
{
InterfaceElementName
.
CONNECT_WALLET_BUTTON
}
>
>
<
ButtonLight
onClick=
{
toggleWalletDrawer
}
>
<
ButtonLight
onClick=
{
toggleWalletDrawer
}
>
<
Trans
>
Connect
W
allet
</
Trans
>
<
Trans
>
Connect
w
allet
</
Trans
>
</
ButtonLight
>
</
ButtonLight
>
</
TraceEvent
>
</
TraceEvent
>
)
:
(
)
:
(
...
...
src/pages/CreateProposal/ProposalActionSelector.tsx
View file @
71212f7e
...
@@ -77,7 +77,7 @@ export const ProposalActionSelector = ({
...
@@ -77,7 +77,7 @@ export const ProposalActionSelector = ({
<
ProposalActionSelectorFlex
>
<
ProposalActionSelectorFlex
>
<
ProposalActionSelectorContainer
className=
{
className
}
>
<
ProposalActionSelectorContainer
className=
{
className
}
>
<
ActionSelectorHeader
>
<
ActionSelectorHeader
>
<
Trans
>
Proposed
A
ction
</
Trans
>
<
Trans
>
Proposed
a
ction
</
Trans
>
</
ActionSelectorHeader
>
</
ActionSelectorHeader
>
<
ActionDropdown
onClick=
{
onClick
}
>
{
proposalAction
}
</
ActionDropdown
>
<
ActionDropdown
onClick=
{
onClick
}
>
{
proposalAction
}
</
ActionDropdown
>
</
ProposalActionSelectorContainer
>
</
ProposalActionSelectorContainer
>
...
@@ -113,14 +113,14 @@ export function ProposalActionSelectorModal({
...
@@ -113,14 +113,14 @@ export function ProposalActionSelectorModal({
<
MenuItem
onClick=
{
()
=>
handleProposalActionSelect
(
ProposalAction
.
TRANSFER_TOKEN
)
}
>
<
MenuItem
onClick=
{
()
=>
handleProposalActionSelect
(
ProposalAction
.
TRANSFER_TOKEN
)
}
>
<
Column
>
<
Column
>
<
Text
fontWeight=
{
535
}
>
<
Text
fontWeight=
{
535
}
>
<
Trans
>
Transfer
T
oken
</
Trans
>
<
Trans
>
Transfer
t
oken
</
Trans
>
</
Text
>
</
Text
>
</
Column
>
</
Column
>
</
MenuItem
>
</
MenuItem
>
<
MenuItem
onClick=
{
()
=>
handleProposalActionSelect
(
ProposalAction
.
APPROVE_TOKEN
)
}
>
<
MenuItem
onClick=
{
()
=>
handleProposalActionSelect
(
ProposalAction
.
APPROVE_TOKEN
)
}
>
<
Column
>
<
Column
>
<
Text
fontWeight=
{
535
}
>
<
Text
fontWeight=
{
535
}
>
<
Trans
>
Approve
T
oken
</
Trans
>
<
Trans
>
Approve
t
oken
</
Trans
>
</
Text
>
</
Text
>
</
Column
>
</
Column
>
</
MenuItem
>
</
MenuItem
>
...
...
src/pages/CreateProposal/ProposalSubmissionModal.tsx
View file @
71212f7e
...
@@ -26,7 +26,7 @@ export const ProposalSubmissionModal = ({
...
@@ -26,7 +26,7 @@ export const ProposalSubmissionModal = ({
<
LoadingView
onDismiss=
{
onDismiss
}
>
<
LoadingView
onDismiss=
{
onDismiss
}
>
<
AutoColumn
gap=
"md"
justify=
"center"
>
<
AutoColumn
gap=
"md"
justify=
"center"
>
<
ThemedText
.
DeprecatedLargeHeader
>
<
ThemedText
.
DeprecatedLargeHeader
>
<
Trans
>
Submitting
P
roposal
</
Trans
>
<
Trans
>
Submitting
p
roposal
</
Trans
>
</
ThemedText
.
DeprecatedLargeHeader
>
</
ThemedText
.
DeprecatedLargeHeader
>
</
AutoColumn
>
</
AutoColumn
>
</
LoadingView
>
</
LoadingView
>
...
@@ -34,7 +34,7 @@ export const ProposalSubmissionModal = ({
...
@@ -34,7 +34,7 @@ export const ProposalSubmissionModal = ({
<
SubmittedView
onDismiss=
{
onDismiss
}
hash=
{
hash
}
>
<
SubmittedView
onDismiss=
{
onDismiss
}
hash=
{
hash
}
>
<
AutoColumn
gap=
"md"
justify=
"center"
>
<
AutoColumn
gap=
"md"
justify=
"center"
>
<
Text
fontWeight=
{
535
}
fontSize=
{
20
}
textAlign=
"center"
>
<
Text
fontWeight=
{
535
}
fontSize=
{
20
}
textAlign=
"center"
>
<
Trans
>
Proposal
S
ubmitted
</
Trans
>
<
Trans
>
Proposal
s
ubmitted
</
Trans
>
</
Text
>
</
Text
>
{
hash
&&
(
{
hash
&&
(
<
ExternalLink
href=
{
getExplorerLink
(
1
,
hash
,
ExplorerDataType
.
TRANSACTION
)
}
>
<
ExternalLink
href=
{
getExplorerLink
(
1
,
hash
,
ExplorerDataType
.
TRANSACTION
)
}
>
...
...
src/pages/CreateProposal/index.tsx
View file @
71212f7e
...
@@ -101,7 +101,7 @@ const CreateProposalButton = ({
...
@@ -101,7 +101,7 @@ const CreateProposalButton = ({
)
}
)
}
</>
</>
)
:
(
)
:
(
<
Trans
>
Create
P
roposal
</
Trans
>
<
Trans
>
Create
p
roposal
</
Trans
>
)
}
)
}
</
ButtonError
>
</
ButtonError
>
)
)
...
...
src/pages/Landing/__snapshots__/index.test.tsx.snap
View file @
71212f7e
...
@@ -2116,7 +2116,7 @@ exports[`disable nft on landing page does not render nft information and card 1`
...
@@ -2116,7 +2116,7 @@ exports[`disable nft on landing page does not render nft information and card 1`
<div
<div
class="c52 c53"
class="c52 c53"
/>
/>
Connect
W
allet
Connect
w
allet
</button>
</button>
</div>
</div>
</div>
</div>
...
@@ -4815,7 +4815,7 @@ exports[`disable nft on landing page renders nft information and card 1`] = `
...
@@ -4815,7 +4815,7 @@ exports[`disable nft on landing page renders nft information and card 1`] = `
<div
<div
class="c52 c53"
class="c52 c53"
/>
/>
Connect
W
allet
Connect
w
allet
</button>
</button>
</div>
</div>
</div>
</div>
...
...
src/pages/MigrateV2/MigrateV2Pair.tsx
View file @
71212f7e
...
@@ -512,7 +512,7 @@ function V2PairMigration({
...
@@ -512,7 +512,7 @@ function V2PairMigration({
<
RowBetween
>
<
RowBetween
>
<
ThemedText
.
DeprecatedBody
fontSize=
{
14
}
color=
"inherit"
>
<
ThemedText
.
DeprecatedBody
fontSize=
{
14
}
color=
"inherit"
>
<
Trans
>
Price
D
ifference:
</
Trans
>
<
Trans
>
Price
d
ifference:
</
Trans
>
</
ThemedText
.
DeprecatedBody
>
</
ThemedText
.
DeprecatedBody
>
<
ThemedText
.
DeprecatedBlack
fontSize=
{
14
}
color=
"inherit"
>
<
ThemedText
.
DeprecatedBlack
fontSize=
{
14
}
color=
"inherit"
>
<
Trans
>
{
priceDifferenceFraction
?.
toSignificant
(
4
)
}
%
</
Trans
>
<
Trans
>
{
priceDifferenceFraction
?.
toSignificant
(
4
)
}
%
</
Trans
>
...
@@ -542,7 +542,7 @@ function V2PairMigration({
...
@@ -542,7 +542,7 @@ function V2PairMigration({
<
RowBetween
>
<
RowBetween
>
<
ThemedText
.
DeprecatedLabel
>
<
ThemedText
.
DeprecatedLabel
>
<
Trans
>
Set
Price R
ange
</
Trans
>
<
Trans
>
Set
price r
ange
</
Trans
>
</
ThemedText
.
DeprecatedLabel
>
</
ThemedText
.
DeprecatedLabel
>
<
RateToggle
<
RateToggle
currencyA=
{
invertPrice
?
currency1
:
currency0
}
currencyA=
{
invertPrice
?
currency1
:
currency0
}
...
@@ -737,7 +737,7 @@ export default function MigrateV2Pair() {
...
@@ -737,7 +737,7 @@ export default function MigrateV2Pair() {
<
AutoRow
style=
{
{
alignItems
:
'
center
'
,
justifyContent
:
'
space-between
'
}
}
gap=
"8px"
>
<
AutoRow
style=
{
{
alignItems
:
'
center
'
,
justifyContent
:
'
space-between
'
}
}
gap=
"8px"
>
<
BackArrowLink
to=
"/migrate/v2"
/>
<
BackArrowLink
to=
"/migrate/v2"
/>
<
ThemedText
.
DeprecatedMediumHeader
>
<
ThemedText
.
DeprecatedMediumHeader
>
<
Trans
>
Migrate V2
L
iquidity
</
Trans
>
<
Trans
>
Migrate V2
l
iquidity
</
Trans
>
</
ThemedText
.
DeprecatedMediumHeader
>
</
ThemedText
.
DeprecatedMediumHeader
>
<
SettingsTab
<
SettingsTab
autoSlippage=
{
DEFAULT_MIGRATE_SLIPPAGE_TOLERANCE
}
autoSlippage=
{
DEFAULT_MIGRATE_SLIPPAGE_TOLERANCE
}
...
...
src/pages/MigrateV2/index.tsx
View file @
71212f7e
...
@@ -122,7 +122,7 @@ export default function MigrateV2() {
...
@@ -122,7 +122,7 @@ export default function MigrateV2() {
<
AutoRow
style=
{
{
alignItems
:
'
center
'
,
justifyContent
:
'
space-between
'
}
}
gap=
"8px"
>
<
AutoRow
style=
{
{
alignItems
:
'
center
'
,
justifyContent
:
'
space-between
'
}
}
gap=
"8px"
>
<
BackArrowLink
to=
"/pools"
/>
<
BackArrowLink
to=
"/pools"
/>
<
ThemedText
.
DeprecatedMediumHeader
>
<
ThemedText
.
DeprecatedMediumHeader
>
<
Trans
>
Migrate V2
L
iquidity
</
Trans
>
<
Trans
>
Migrate V2
l
iquidity
</
Trans
>
</
ThemedText
.
DeprecatedMediumHeader
>
</
ThemedText
.
DeprecatedMediumHeader
>
<
div
>
<
div
>
<
QuestionHelper
text=
{
<
Trans
>
Migrate your liquidity tokens from Uniswap V2 to Uniswap V3.
</
Trans
>
}
/>
<
QuestionHelper
text=
{
<
Trans
>
Migrate your liquidity tokens from Uniswap V2 to Uniswap V3.
</
Trans
>
}
/>
...
@@ -170,7 +170,7 @@ export default function MigrateV2() {
...
@@ -170,7 +170,7 @@ export default function MigrateV2() {
})
}
})
}
</>
</>
)
:
(
)
:
(
<
EmptyState
message=
{
<
Trans
>
No V2
L
iquidity found.
</
Trans
>
}
/>
<
EmptyState
message=
{
<
Trans
>
No V2
l
iquidity found.
</
Trans
>
}
/>
)
}
)
}
<
AutoColumn
justify=
"center"
gap=
"md"
>
<
AutoColumn
justify=
"center"
gap=
"md"
>
...
...
src/pages/Pool/PositionPage.tsx
View file @
71212f7e
...
@@ -704,7 +704,7 @@ function PositionPageContent() {
...
@@ -704,7 +704,7 @@ function PositionPageContent() {
$borderRadius=
"12px"
$borderRadius=
"12px"
style=
{
{
marginRight
:
'
8px
'
}
}
style=
{
{
marginRight
:
'
8px
'
}
}
>
>
<
Trans
>
Increase
L
iquidity
</
Trans
>
<
Trans
>
Increase
l
iquidity
</
Trans
>
</
ButtonGray
>
</
ButtonGray
>
)
:
null
}
)
:
null
}
{
tokenId
&&
!
removed
?
(
{
tokenId
&&
!
removed
?
(
...
@@ -715,7 +715,7 @@ function PositionPageContent() {
...
@@ -715,7 +715,7 @@ function PositionPageContent() {
width=
"fit-content"
width=
"fit-content"
$borderRadius=
"12px"
$borderRadius=
"12px"
>
>
<
Trans
>
Remove
L
iquidity
</
Trans
>
<
Trans
>
Remove
l
iquidity
</
Trans
>
</
SmallButtonPrimary
>
</
SmallButtonPrimary
>
)
:
null
}
)
:
null
}
</
ActionButtonResponsiveRow
>
</
ActionButtonResponsiveRow
>
...
...
src/pages/Pool/v2.tsx
View file @
71212f7e
...
@@ -193,12 +193,12 @@ export default function Pool() {
...
@@ -193,12 +193,12 @@ export default function Pool() {
</
ResponsiveButtonSecondary
>
</
ResponsiveButtonSecondary
>
<
ResponsiveButtonPrimary
id=
"find-pool-button"
as=
{
Link
}
to=
"/pools/v2/find"
padding=
"6px 8px"
>
<
ResponsiveButtonPrimary
id=
"find-pool-button"
as=
{
Link
}
to=
"/pools/v2/find"
padding=
"6px 8px"
>
<
Text
fontWeight=
{
535
}
fontSize=
{
16
}
>
<
Text
fontWeight=
{
535
}
fontSize=
{
16
}
>
<
Trans
>
Import
P
ool
</
Trans
>
<
Trans
>
Import
p
ool
</
Trans
>
</
Text
>
</
Text
>
</
ResponsiveButtonPrimary
>
</
ResponsiveButtonPrimary
>
<
ResponsiveButtonPrimary
id=
"join-pool-button"
as=
{
Link
}
to=
"/add/v2/ETH"
padding=
"6px 8px"
>
<
ResponsiveButtonPrimary
id=
"join-pool-button"
as=
{
Link
}
to=
"/add/v2/ETH"
padding=
"6px 8px"
>
<
Text
fontWeight=
{
535
}
fontSize=
{
16
}
>
<
Text
fontWeight=
{
535
}
fontSize=
{
16
}
>
<
Trans
>
Add V2
L
iquidity
</
Trans
>
<
Trans
>
Add V2
l
iquidity
</
Trans
>
</
Text
>
</
Text
>
</
ResponsiveButtonPrimary
>
</
ResponsiveButtonPrimary
>
</
ButtonRow
>
</
ButtonRow
>
...
@@ -257,7 +257,7 @@ export default function Pool() {
...
@@ -257,7 +257,7 @@ export default function Pool() {
}
}
}
}
>
>
<
ChevronsRight
size=
{
16
}
style=
{
{
marginRight
:
'
8px
'
}
}
/>
<
ChevronsRight
size=
{
16
}
style=
{
{
marginRight
:
'
8px
'
}
}
/>
<
Trans
>
Migrate
L
iquidity to V3
</
Trans
>
<
Trans
>
Migrate
l
iquidity to V3
</
Trans
>
</
ButtonOutlined
>
</
ButtonOutlined
>
</
RowFixed
>
</
RowFixed
>
</>
</>
...
...
src/pages/PoolFinder/index.tsx
View file @
71212f7e
...
@@ -165,7 +165,7 @@ export default function PoolFinder() {
...
@@ -165,7 +165,7 @@ export default function PoolFinder() {
style=
{
{
justifyItems
:
'
center
'
,
backgroundColor
:
''
,
padding
:
'
12px 0px
'
,
borderRadius
:
'
12px
'
}
}
style=
{
{
justifyItems
:
'
center
'
,
backgroundColor
:
''
,
padding
:
'
12px 0px
'
,
borderRadius
:
'
12px
'
}
}
>
>
<
Text
textAlign=
"center"
fontWeight=
{
535
}
>
<
Text
textAlign=
"center"
fontWeight=
{
535
}
>
<
Trans
>
Pool
F
ound!
</
Trans
>
<
Trans
>
Pool
f
ound!
</
Trans
>
</
Text
>
</
Text
>
<
StyledInternalLink
to=
"pools/v2"
>
<
StyledInternalLink
to=
"pools/v2"
>
<
Text
textAlign=
"center"
>
<
Text
textAlign=
"center"
>
...
...
src/pages/RemoveLiquidity/V3.tsx
View file @
71212f7e
...
@@ -292,7 +292,7 @@ function Remove({ tokenId }: { tokenId: BigNumber }) {
...
@@ -292,7 +292,7 @@ function Remove({ tokenId }: { tokenId: BigNumber }) {
hash=
{
txnHash
??
''
}
hash=
{
txnHash
??
''
}
reviewContent=
{
()
=>
(
reviewContent=
{
()
=>
(
<
ConfirmationModalContent
<
ConfirmationModalContent
title=
{
<
Trans
>
Remove
L
iquidity
</
Trans
>
}
title=
{
<
Trans
>
Remove
l
iquidity
</
Trans
>
}
onDismiss=
{
handleDismissConfirmation
}
onDismiss=
{
handleDismissConfirmation
}
topContent=
{
modalHeader
}
topContent=
{
modalHeader
}
/>
/>
...
...
src/pages/RemoveLiquidity/index.tsx
View file @
71212f7e
...
@@ -483,7 +483,7 @@ function RemoveLiquidity() {
...
@@ -483,7 +483,7 @@ function RemoveLiquidity() {
<
AutoColumn
gap=
"20px"
>
<
AutoColumn
gap=
"20px"
>
<
RowBetween
>
<
RowBetween
>
<
Text
fontWeight=
{
535
}
>
<
Text
fontWeight=
{
535
}
>
<
Trans
>
Remove
A
mount
</
Trans
>
<
Trans
>
Remove
a
mount
</
Trans
>
</
Text
>
</
Text
>
<
ClickableText
<
ClickableText
fontWeight=
{
535
}
fontWeight=
{
535
}
...
@@ -651,7 +651,7 @@ function RemoveLiquidity() {
...
@@ -651,7 +651,7 @@ function RemoveLiquidity() {
element=
{
InterfaceElementName
.
CONNECT_WALLET_BUTTON
}
element=
{
InterfaceElementName
.
CONNECT_WALLET_BUTTON
}
>
>
<
ButtonLight
onClick=
{
toggleWalletDrawer
}
>
<
ButtonLight
onClick=
{
toggleWalletDrawer
}
>
<
Trans
>
Connect
W
allet
</
Trans
>
<
Trans
>
Connect
w
allet
</
Trans
>
</
ButtonLight
>
</
ButtonLight
>
</
TraceEvent
>
</
TraceEvent
>
)
:
(
)
:
(
...
...
src/pages/Swap/index.tsx
View file @
71212f7e
...
@@ -727,7 +727,7 @@ export function Swap({
...
@@ -727,7 +727,7 @@ export function Swap({
{
swapIsUnsupported
?
(
{
swapIsUnsupported
?
(
<
ButtonPrimary
$borderRadius=
"16px"
disabled=
{
true
}
>
<
ButtonPrimary
$borderRadius=
"16px"
disabled=
{
true
}
>
<
ThemedText
.
DeprecatedMain
mb=
"4px"
>
<
ThemedText
.
DeprecatedMain
mb=
"4px"
>
<
Trans
>
Unsupported
A
sset
</
Trans
>
<
Trans
>
Unsupported
a
sset
</
Trans
>
</
ThemedText
.
DeprecatedMain
>
</
ThemedText
.
DeprecatedMain
>
</
ButtonPrimary
>
</
ButtonPrimary
>
)
:
switchingChain
?
(
)
:
switchingChain
?
(
...
@@ -742,7 +742,7 @@ export function Swap({
...
@@ -742,7 +742,7 @@ export function Swap({
element=
{
InterfaceElementName
.
CONNECT_WALLET_BUTTON
}
element=
{
InterfaceElementName
.
CONNECT_WALLET_BUTTON
}
>
>
<
ButtonLight
onClick=
{
toggleWalletDrawer
}
fontWeight=
{
535
}
$borderRadius=
"16px"
>
<
ButtonLight
onClick=
{
toggleWalletDrawer
}
fontWeight=
{
535
}
$borderRadius=
"16px"
>
<
Trans
>
Connect
W
allet
</
Trans
>
<
Trans
>
Connect
w
allet
</
Trans
>
</
ButtonLight
>
</
ButtonLight
>
</
TraceEvent
>
</
TraceEvent
>
)
:
chainId
&&
chainId
!==
connectedChainId
?
(
)
:
chainId
&&
chainId
!==
connectedChainId
?
(
...
@@ -806,7 +806,7 @@ export function Swap({
...
@@ -806,7 +806,7 @@ export function Swap({
)
:
routeIsSyncing
||
routeIsLoading
?
(
)
:
routeIsSyncing
||
routeIsLoading
?
(
<
Trans
>
Swap
</
Trans
>
<
Trans
>
Swap
</
Trans
>
)
:
priceImpactSeverity
>
2
?
(
)
:
priceImpactSeverity
>
2
?
(
<
Trans
>
Swap
A
nyway
</
Trans
>
<
Trans
>
Swap
a
nyway
</
Trans
>
)
:
(
)
:
(
<
Trans
>
Swap
</
Trans
>
<
Trans
>
Swap
</
Trans
>
)
}
)
}
...
...
src/pages/Vote/Landing.tsx
View file @
71212f7e
...
@@ -150,7 +150,7 @@ export default function Landing() {
...
@@ -150,7 +150,7 @@ export default function Landing() {
<
DelegateModal
<
DelegateModal
isOpen=
{
showDelegateModal
}
isOpen=
{
showDelegateModal
}
onDismiss=
{
toggleDelegateModal
}
onDismiss=
{
toggleDelegateModal
}
title=
{
showUnlockVoting
?
<
Trans
>
Unlock
Votes
</
Trans
>
:
<
Trans
>
Update D
elegation
</
Trans
>
}
title=
{
showUnlockVoting
?
<
Trans
>
Unlock
votes
</
Trans
>
:
<
Trans
>
Update d
elegation
</
Trans
>
}
/>
/>
<
TopSection
gap=
"md"
>
<
TopSection
gap=
"md"
>
<
VoteCard
>
<
VoteCard
>
...
@@ -160,7 +160,7 @@ export default function Landing() {
...
@@ -160,7 +160,7 @@ export default function Landing() {
<
AutoColumn
gap=
"md"
>
<
AutoColumn
gap=
"md"
>
<
RowBetween
>
<
RowBetween
>
<
ThemedText
.
DeprecatedWhite
fontWeight=
{
535
}
>
<
ThemedText
.
DeprecatedWhite
fontWeight=
{
535
}
>
<
Trans
>
Uniswap
G
overnance
</
Trans
>
<
Trans
>
Uniswap
g
overnance
</
Trans
>
</
ThemedText
.
DeprecatedWhite
>
</
ThemedText
.
DeprecatedWhite
>
</
RowBetween
>
</
RowBetween
>
<
RowBetween
>
<
RowBetween
>
...
@@ -203,7 +203,7 @@ export default function Landing() {
...
@@ -203,7 +203,7 @@ export default function Landing() {
$borderRadius=
"8px"
$borderRadius=
"8px"
onClick=
{
toggleDelegateModal
}
onClick=
{
toggleDelegateModal
}
>
>
<
Trans
>
Unlock
V
oting
</
Trans
>
<
Trans
>
Unlock
v
oting
</
Trans
>
</
ButtonPrimary
>
</
ButtonPrimary
>
)
:
availableVotes
&&
JSBI
.
notEqual
(
JSBI
.
BigInt
(
0
),
availableVotes
?.
quotient
)
?
(
)
:
availableVotes
&&
JSBI
.
notEqual
(
JSBI
.
BigInt
(
0
),
availableVotes
?.
quotient
)
?
(
<
ThemedText
.
DeprecatedBody
fontWeight=
{
535
}
mr=
"6px"
>
<
ThemedText
.
DeprecatedBody
fontWeight=
{
535
}
mr=
"6px"
>
...
@@ -229,7 +229,7 @@ export default function Landing() {
...
@@ -229,7 +229,7 @@ export default function Landing() {
style=
{
{
width
:
'
fit-content
'
,
borderRadius
:
'
8px
'
,
height
:
'
40px
'
}
}
style=
{
{
width
:
'
fit-content
'
,
borderRadius
:
'
8px
'
,
height
:
'
40px
'
}
}
padding=
"8px"
padding=
"8px"
>
>
<
Trans
>
Create
P
roposal
</
Trans
>
<
Trans
>
Create
p
roposal
</
Trans
>
</
ButtonPrimary
>
</
ButtonPrimary
>
</
AutoRow
>
</
AutoRow
>
</
WrapSmall
>
</
WrapSmall
>
...
@@ -266,7 +266,7 @@ export default function Landing() {
...
@@ -266,7 +266,7 @@ export default function Landing() {
<
RowBetween
></
RowBetween
>
<
RowBetween
></
RowBetween
>
<
RowBetween
>
<
RowBetween
>
<
ThemedText
.
DeprecatedMain
>
<
ThemedText
.
DeprecatedMain
>
<
Trans
>
Show
C
ancelled
</
Trans
>
<
Trans
>
Show
c
ancelled
</
Trans
>
</
ThemedText
.
DeprecatedMain
>
</
ThemedText
.
DeprecatedMain
>
<
Toggle
<
Toggle
isActive=
{
!
hideCancelled
}
isActive=
{
!
hideCancelled
}
...
...
src/pages/Vote/VotePage.tsx
View file @
71212f7e
...
@@ -283,7 +283,7 @@ export default function VotePage() {
...
@@ -283,7 +283,7 @@ export default function VotePage() {
<DelegateModal
<DelegateModal
isOpen={showDelegateModal}
isOpen={showDelegateModal}
onDismiss={toggleDelegateModal}
onDismiss={toggleDelegateModal}
title={<Trans>Unlock
V
otes</Trans>}
title={<Trans>Unlock
v
otes</Trans>}
/>
/>
<QueueModal isOpen={showQueueModal} onDismiss={toggleQueueModal} proposalId={proposalData?.id} />
<QueueModal isOpen={showQueueModal} onDismiss={toggleQueueModal} proposalId={proposalData?.id} />
<ExecuteModal isOpen={showExecuteModal} onDismiss={toggleExecuteModal} proposalId={proposalData?.id} />
<ExecuteModal isOpen={showExecuteModal} onDismiss={toggleExecuteModal} proposalId={proposalData?.id} />
...
@@ -346,7 +346,7 @@ export default function VotePage() {
...
@@ -346,7 +346,7 @@ export default function VotePage() {
toggleVoteModal()
toggleVoteModal()
}}
}}
>
>
<Trans>Vote
F
or</Trans>
<Trans>Vote
f
or</Trans>
</ButtonPrimary>
</ButtonPrimary>
<ButtonPrimary
<ButtonPrimary
padding="8px"
padding="8px"
...
@@ -356,7 +356,7 @@ export default function VotePage() {
...
@@ -356,7 +356,7 @@ export default function VotePage() {
toggleVoteModal()
toggleVoteModal()
}}
}}
>
>
<Trans>Vote
A
gainst</Trans>
<Trans>Vote
a
gainst</Trans>
</ButtonPrimary>
</ButtonPrimary>
</RowFixed>
</RowFixed>
)}
)}
...
...
src/state/burn/hooks.tsx
View file @
71212f7e
...
@@ -124,7 +124,7 @@ export function useDerivedBurnInfo(
...
@@ -124,7 +124,7 @@ export function useDerivedBurnInfo(
let
error
:
ReactNode
|
undefined
let
error
:
ReactNode
|
undefined
if
(
!
account
)
{
if
(
!
account
)
{
error
=
<
Trans
>
Connect
W
allet
</
Trans
>
error
=
<
Trans
>
Connect
w
allet
</
Trans
>
}
}
if
(
!
parsedAmounts
[
Field
.
LIQUIDITY
]
||
!
parsedAmounts
[
Field
.
CURRENCY_A
]
||
!
parsedAmounts
[
Field
.
CURRENCY_B
])
{
if
(
!
parsedAmounts
[
Field
.
LIQUIDITY
]
||
!
parsedAmounts
[
Field
.
CURRENCY_A
]
||
!
parsedAmounts
[
Field
.
CURRENCY_B
])
{
...
...
src/state/burn/v3/hooks.tsx
View file @
71212f7e
...
@@ -76,7 +76,7 @@ export function useDerivedV3BurnInfo(
...
@@ -76,7 +76,7 @@ export function useDerivedV3BurnInfo(
let
error
:
ReactNode
|
undefined
let
error
:
ReactNode
|
undefined
if
(
!
account
)
{
if
(
!
account
)
{
error
=
<
Trans
>
Connect
W
allet
</
Trans
>
error
=
<
Trans
>
Connect
w
allet
</
Trans
>
}
}
if
(
percent
===
0
)
{
if
(
percent
===
0
)
{
error
=
error
??
<
Trans
>
Enter a percent
</
Trans
>
error
=
error
??
<
Trans
>
Enter a percent
</
Trans
>
...
...
src/state/mint/hooks.tsx
View file @
71212f7e
...
@@ -178,7 +178,7 @@ export function useDerivedMintInfo(
...
@@ -178,7 +178,7 @@ export function useDerivedMintInfo(
let
error
:
ReactNode
|
undefined
let
error
:
ReactNode
|
undefined
if
(
!
account
)
{
if
(
!
account
)
{
error
=
<
Trans
>
Connect
W
allet
</
Trans
>
error
=
<
Trans
>
Connect
w
allet
</
Trans
>
}
}
if
(
pairState
===
PairState
.
INVALID
)
{
if
(
pairState
===
PairState
.
INVALID
)
{
...
...
src/state/mint/v3/hooks.tsx
View file @
71212f7e
...
@@ -444,7 +444,7 @@ export function useV3DerivedMintInfo(
...
@@ -444,7 +444,7 @@ export function useV3DerivedMintInfo(
let
errorMessage
:
ReactNode
|
undefined
let
errorMessage
:
ReactNode
|
undefined
if
(
!
account
)
{
if
(
!
account
)
{
errorMessage
=
<
Trans
>
Connect
W
allet
</
Trans
>
errorMessage
=
<
Trans
>
Connect
w
allet
</
Trans
>
}
}
if
(
poolState
===
PoolState
.
INVALID
)
{
if
(
poolState
===
PoolState
.
INVALID
)
{
...
...
src/state/swap/hooks.tsx
View file @
71212f7e
...
@@ -174,7 +174,7 @@ export function useDerivedSwapInfo(state: SwapState, chainId: ChainId | undefine
...
@@ -174,7 +174,7 @@ export function useDerivedSwapInfo(state: SwapState, chainId: ChainId | undefine
let
inputError
:
ReactNode
|
undefined
let
inputError
:
ReactNode
|
undefined
if
(
!
account
)
{
if
(
!
account
)
{
inputError
=
connectionReady
?
<
Trans
>
Connect
Wallet
</
Trans
>
:
<
Trans
>
Connecting W
allet...
</
Trans
>
inputError
=
connectionReady
?
<
Trans
>
Connect
wallet
</
Trans
>
:
<
Trans
>
Connecting w
allet...
</
Trans
>
}
}
if
(
!
currencies
[
Field
.
INPUT
]
||
!
currencies
[
Field
.
OUTPUT
])
{
if
(
!
currencies
[
Field
.
INPUT
]
||
!
currencies
[
Field
.
OUTPUT
])
{
...
...
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