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
8a4e07e6
Commit
8a4e07e6
authored
Oct 12, 2022
by
Jordan Frankfurt
Committed by
Connor McEwen
Oct 13, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: update font-weight values to match spec (#4863)
parent
7f4413c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
index.tsx
src/pages/Swap/index.tsx
+5
-4
No files found.
src/pages/Swap/index.tsx
View file @
8a4e07e6
...
@@ -694,12 +694,12 @@ export default function Swap() {
...
@@ -694,12 +694,12 @@ export default function Swap() {
properties=
{
{
received_swap_quote
:
getIsValidSwapQuote
(
trade
,
tradeState
,
swapInputError
)
}
}
properties=
{
{
received_swap_quote
:
getIsValidSwapQuote
(
trade
,
tradeState
,
swapInputError
)
}
}
element=
{
ElementName
.
CONNECT_WALLET_BUTTON
}
element=
{
ElementName
.
CONNECT_WALLET_BUTTON
}
>
>
<
ButtonLight
onClick=
{
toggleWalletModal
}
redesignFlag=
{
redesignFlagEnabled
}
>
<
ButtonLight
onClick=
{
toggleWalletModal
}
redesignFlag=
{
redesignFlagEnabled
}
fontWeight=
{
600
}
>
<
Trans
>
Connect Wallet
</
Trans
>
<
Trans
>
Connect Wallet
</
Trans
>
</
ButtonLight
>
</
ButtonLight
>
</
TraceEvent
>
</
TraceEvent
>
)
:
showWrap
?
(
)
:
showWrap
?
(
<
ButtonPrimary
disabled=
{
Boolean
(
wrapInputError
)
}
onClick=
{
onWrap
}
>
<
ButtonPrimary
disabled=
{
Boolean
(
wrapInputError
)
}
onClick=
{
onWrap
}
fontWeight=
{
600
}
>
{
wrapInputError
?
(
{
wrapInputError
?
(
<
WrapErrorText
wrapInputError=
{
wrapInputError
}
/>
<
WrapErrorText
wrapInputError=
{
wrapInputError
}
/>
)
:
wrapType
===
WrapType
.
WRAP
?
(
)
:
wrapType
===
WrapType
.
WRAP
?
(
...
@@ -718,6 +718,7 @@ export default function Swap() {
...
@@ -718,6 +718,7 @@ export default function Swap() {
<
AutoRow
style=
{
{
flexWrap
:
'
nowrap
'
,
width
:
'
100%
'
}
}
>
<
AutoRow
style=
{
{
flexWrap
:
'
nowrap
'
,
width
:
'
100%
'
}
}
>
<
AutoColumn
style=
{
{
width
:
'
100%
'
}
}
gap=
"12px"
>
<
AutoColumn
style=
{
{
width
:
'
100%
'
}
}
gap=
"12px"
>
<
ButtonConfirmed
<
ButtonConfirmed
fontWeight=
{
600
}
onClick=
{
handleApprove
}
onClick=
{
handleApprove
}
disabled=
{
approveTokenButtonDisabled
}
disabled=
{
approveTokenButtonDisabled
}
width=
"100%"
width=
"100%"
...
@@ -780,7 +781,7 @@ export default function Swap() {
...
@@ -780,7 +781,7 @@ export default function Swap() {
}
}
error=
{
isValid
&&
priceImpactSeverity
>
2
}
error=
{
isValid
&&
priceImpactSeverity
>
2
}
>
>
<
Text
fontSize=
{
16
}
fontWeight=
{
5
00
}
>
<
Text
fontSize=
{
16
}
fontWeight=
{
6
00
}
>
{
priceImpactTooHigh
?
(
{
priceImpactTooHigh
?
(
<
Trans
>
High Price Impact
</
Trans
>
<
Trans
>
High Price Impact
</
Trans
>
)
:
trade
&&
priceImpactSeverity
>
2
?
(
)
:
trade
&&
priceImpactSeverity
>
2
?
(
...
@@ -811,7 +812,7 @@ export default function Swap() {
...
@@ -811,7 +812,7 @@ export default function Swap() {
disabled=
{
!
isValid
||
routeIsSyncing
||
routeIsLoading
||
priceImpactTooHigh
||
!!
swapCallbackError
}
disabled=
{
!
isValid
||
routeIsSyncing
||
routeIsLoading
||
priceImpactTooHigh
||
!!
swapCallbackError
}
error=
{
isValid
&&
priceImpactSeverity
>
2
&&
!
swapCallbackError
}
error=
{
isValid
&&
priceImpactSeverity
>
2
&&
!
swapCallbackError
}
>
>
<
Text
fontSize=
{
20
}
fontWeight=
{
5
00
}
>
<
Text
fontSize=
{
20
}
fontWeight=
{
6
00
}
>
{
swapInputError
?
(
{
swapInputError
?
(
swapInputError
swapInputError
)
:
routeIsSyncing
||
routeIsLoading
?
(
)
:
routeIsSyncing
||
routeIsLoading
?
(
...
...
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