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
3affcb8d
Unverified
Commit
3affcb8d
authored
May 05, 2021
by
Ian Lapham
Committed by
GitHub
May 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small ux style updates (#160)
parent
56e759ff
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
9 deletions
+11
-9
index.tsx
src/components/Header/index.tsx
+1
-2
InputStepCounter.tsx
src/components/InputStepCounter/InputStepCounter.tsx
+2
-2
index.tsx
src/components/Menu/index.tsx
+8
-5
No files found.
src/components/Header/index.tsx
View file @
3affcb8d
...
@@ -340,7 +340,7 @@ export default function Header() {
...
@@ -340,7 +340,7 @@ export default function Header() {
Boolean
(
match
)
||
Boolean
(
match
)
||
pathname
.
startsWith
(
'
/add
'
)
||
pathname
.
startsWith
(
'
/add
'
)
||
pathname
.
startsWith
(
'
/remove
'
)
||
pathname
.
startsWith
(
'
/remove
'
)
||
pathname
.
startsWith
(
'
/
creat
e
'
)
||
pathname
.
startsWith
(
'
/
increas
e
'
)
||
pathname
.
startsWith
(
'
/find
'
)
pathname
.
startsWith
(
'
/find
'
)
}
}
>
>
...
@@ -370,7 +370,6 @@ export default function Header() {
...
@@ -370,7 +370,6 @@ export default function Header() {
<
CardNoise
/>
<
CardNoise
/>
</
UNIWrapper
>
</
UNIWrapper
>
)
}
)
}
<
AccountElement
active=
{
!!
account
}
style=
{
{
pointerEvents
:
'
auto
'
}
}
>
<
AccountElement
active=
{
!!
account
}
style=
{
{
pointerEvents
:
'
auto
'
}
}
>
{
account
&&
userEthBalance
?
(
{
account
&&
userEthBalance
?
(
<
BalanceText
style=
{
{
flexShrink
:
0
}
}
pl=
"0.75rem"
pr=
"0.5rem"
fontWeight=
{
500
}
>
<
BalanceText
style=
{
{
flexShrink
:
0
}
}
pl=
"0.75rem"
pr=
"0.5rem"
fontWeight=
{
500
}
>
...
...
src/components/InputStepCounter/InputStepCounter.tsx
View file @
3affcb8d
...
@@ -145,10 +145,10 @@ const StepCounter = ({
...
@@ -145,10 +145,10 @@ const StepCounter = ({
{
!
locked
?
(
{
!
locked
?
(
<
RowBetween
>
<
RowBetween
>
<
SmallButton
onClick=
{
handleDecrement
}
>
<
SmallButton
onClick=
{
handleDecrement
}
>
<
TYPE
.
black
fontSize=
"12px"
>
-
{
feeAmountFormatted
}
%
</
TYPE
.
black
>
<
TYPE
.
white
fontSize=
"12px"
>
-
{
feeAmountFormatted
}
%
</
TYPE
.
white
>
</
SmallButton
>
</
SmallButton
>
<
SmallButton
onClick=
{
handleIncrement
}
>
<
SmallButton
onClick=
{
handleIncrement
}
>
<
TYPE
.
black
fontSize=
"12px"
>
+
{
feeAmountFormatted
}
%
</
TYPE
.
black
>
<
TYPE
.
white
fontSize=
"12px"
>
+
{
feeAmountFormatted
}
%
</
TYPE
.
white
>
</
SmallButton
>
</
SmallButton
>
</
RowBetween
>
</
RowBetween
>
)
:
null
}
)
:
null
}
...
...
src/components/Menu/index.tsx
View file @
3affcb8d
...
@@ -90,7 +90,10 @@ const MenuFlyout = styled.span<{ flyoutAlignment?: FlyoutAlignment }>`
...
@@ -90,7 +90,10 @@ const MenuFlyout = styled.span<{ flyoutAlignment?: FlyoutAlignment }>`
`
`
const
MenuItem
=
styled
(
ExternalLink
)
`
const
MenuItem
=
styled
(
ExternalLink
)
`
display: flex;
flex: 1;
flex: 1;
flex-direction: row;
align-items: center;
padding: 0.5rem 0.5rem;
padding: 0.5rem 0.5rem;
color:
${({
theme
})
=>
theme
.
text2
}
;
color:
${({
theme
})
=>
theme
.
text2
}
;
:hover {
:hover {
...
@@ -139,23 +142,23 @@ export default function Menu() {
...
@@ -139,23 +142,23 @@ export default function Menu() {
<
MenuFlyout
>
<
MenuFlyout
>
<
MenuItem
href=
"https://uniswap.org/"
>
<
MenuItem
href=
"https://uniswap.org/"
>
<
Info
size=
{
14
}
/>
<
Info
size=
{
14
}
/>
About
<
div
>
About
</
div
>
</
MenuItem
>
</
MenuItem
>
<
MenuItem
href=
"https://docs.uniswap.org/"
>
<
MenuItem
href=
"https://docs.uniswap.org/"
>
<
BookOpen
size=
{
14
}
/>
<
BookOpen
size=
{
14
}
/>
Docs
<
div
>
Docs
</
div
>
</
MenuItem
>
</
MenuItem
>
<
MenuItem
href=
{
CODE_LINK
}
>
<
MenuItem
href=
{
CODE_LINK
}
>
<
Code
size=
{
14
}
/>
<
Code
size=
{
14
}
/>
Code
<
div
>
Code
</
div
>
</
MenuItem
>
</
MenuItem
>
<
MenuItem
href=
"https://discord.gg/FCfyBSbCU5"
>
<
MenuItem
href=
"https://discord.gg/FCfyBSbCU5"
>
<
MessageCircle
size=
{
14
}
/>
<
MessageCircle
size=
{
14
}
/>
Discord
<
div
>
Discord
</
div
>
</
MenuItem
>
</
MenuItem
>
<
MenuItem
href=
"https://info.uniswap.org/"
>
<
MenuItem
href=
"https://info.uniswap.org/"
>
<
PieChart
size=
{
14
}
/>
<
PieChart
size=
{
14
}
/>
Analytics
<
div
>
Analytics
</
div
>
</
MenuItem
>
</
MenuItem
>
{
account
&&
(
{
account
&&
(
<
UNIbutton
onClick=
{
openClaimModal
}
padding=
"8px 16px"
width=
"100%"
borderRadius=
"12px"
mt=
"0.5rem"
>
<
UNIbutton
onClick=
{
openClaimModal
}
padding=
"8px 16px"
width=
"100%"
borderRadius=
"12px"
mt=
"0.5rem"
>
...
...
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