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