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
3840daf3
Unverified
Commit
3840daf3
authored
May 30, 2021
by
Moody Salem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
few more missed spots
parent
1104bdce
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
8 deletions
+11
-8
ManageLists.tsx
src/components/SearchModal/ManageLists.tsx
+4
-2
ManageTokens.tsx
src/components/SearchModal/ManageTokens.tsx
+1
-2
ListToggle.tsx
src/components/Toggle/ListToggle.tsx
+3
-2
index.tsx
src/components/Toggle/index.tsx
+3
-2
No files found.
src/components/SearchModal/ManageLists.tsx
View file @
3840daf3
...
@@ -326,7 +326,7 @@ export function ManageLists({
...
@@ -326,7 +326,7 @@ export function ManageLists({
<
SearchInput
<
SearchInput
type=
"text"
type=
"text"
id=
"list-add-input"
id=
"list-add-input"
placeholder=
"https:// or ipfs:// or ENS name"
placeholder=
{
t
`https:// or ipfs:// or ENS name`
}
value=
{
listUrlInput
}
value=
{
listUrlInput
}
onChange=
{
handleInput
}
onChange=
{
handleInput
}
/>
/>
...
@@ -345,7 +345,9 @@ export function ManageLists({
...
@@ -345,7 +345,9 @@ export function ManageLists({
{
tempList
.
logoURI
&&
<
ListLogo
logoURI=
{
tempList
.
logoURI
}
size=
"40px"
/>
}
{
tempList
.
logoURI
&&
<
ListLogo
logoURI=
{
tempList
.
logoURI
}
size=
"40px"
/>
}
<
AutoColumn
gap=
"4px"
style=
{
{
marginLeft
:
'
20px
'
}
}
>
<
AutoColumn
gap=
"4px"
style=
{
{
marginLeft
:
'
20px
'
}
}
>
<
TYPE
.
body
fontWeight=
{
600
}
>
{
tempList
.
name
}
</
TYPE
.
body
>
<
TYPE
.
body
fontWeight=
{
600
}
>
{
tempList
.
name
}
</
TYPE
.
body
>
<
TYPE
.
main
fontSize=
{
'
12px
'
}
>
{
tempList
.
tokens
.
length
}
tokens
</
TYPE
.
main
>
<
TYPE
.
main
fontSize=
{
'
12px
'
}
>
<
Trans
>
{
tempList
.
tokens
.
length
}
tokens
</
Trans
>
</
TYPE
.
main
>
</
AutoColumn
>
</
AutoColumn
>
</
RowFixed
>
</
RowFixed
>
{
isImported
?
(
{
isImported
?
(
...
...
src/components/SearchModal/ManageTokens.tsx
View file @
3840daf3
...
@@ -130,8 +130,7 @@ export default function ManageTokens({
...
@@ -130,8 +130,7 @@ export default function ManageTokens({
<
PaddedColumn
gap=
"lg"
style=
{
{
overflow
:
'
auto
'
,
marginBottom
:
'
10px
'
}
}
>
<
PaddedColumn
gap=
"lg"
style=
{
{
overflow
:
'
auto
'
,
marginBottom
:
'
10px
'
}
}
>
<
RowBetween
>
<
RowBetween
>
<
TYPE
.
main
fontWeight=
{
600
}
>
<
TYPE
.
main
fontWeight=
{
600
}
>
{
/* TODO(judo): handle plural */
}
<
Trans
>
{
userAddedTokens
?.
length
}
Custom Tokens
</
Trans
>
{
userAddedTokens
?.
length
}
Custom
{
userAddedTokens
.
length
===
1
?
'
Token
'
:
'
Tokens
'
}
</
TYPE
.
main
>
</
TYPE
.
main
>
{
userAddedTokens
.
length
>
0
&&
(
{
userAddedTokens
.
length
>
0
&&
(
<
ButtonText
onClick=
{
handleRemoveAll
}
>
<
ButtonText
onClick=
{
handleRemoveAll
}
>
...
...
src/components/Toggle/ListToggle.tsx
View file @
3840daf3
import
{
Trans
}
from
'
@lingui/macro
'
import
React
from
'
react
'
import
React
from
'
react
'
import
styled
from
'
styled-components/macro
'
import
styled
from
'
styled-components/macro
'
import
{
TYPE
}
from
'
../../theme
'
import
{
TYPE
}
from
'
../../theme
'
...
@@ -42,13 +43,13 @@ export default function ListToggle({ id, isActive, bgColor, toggle }: ToggleProp
...
@@ -42,13 +43,13 @@ export default function ListToggle({ id, isActive, bgColor, toggle }: ToggleProp
<
Wrapper
id=
{
id
}
isActive=
{
isActive
}
onClick=
{
toggle
}
>
<
Wrapper
id=
{
id
}
isActive=
{
isActive
}
onClick=
{
toggle
}
>
{
isActive
&&
(
{
isActive
&&
(
<
StatusText
fontWeight=
"600"
margin=
"0 6px"
isActive=
{
true
}
>
<
StatusText
fontWeight=
"600"
margin=
"0 6px"
isActive=
{
true
}
>
ON
<
Trans
>
ON
</
Trans
>
</
StatusText
>
</
StatusText
>
)
}
)
}
<
ToggleElement
isActive=
{
isActive
}
bgColor=
{
bgColor
}
/>
<
ToggleElement
isActive=
{
isActive
}
bgColor=
{
bgColor
}
/>
{
!
isActive
&&
(
{
!
isActive
&&
(
<
StatusText
fontWeight=
"600"
margin=
"0 6px"
isActive=
{
false
}
>
<
StatusText
fontWeight=
"600"
margin=
"0 6px"
isActive=
{
false
}
>
OFF
<
Trans
>
OFF
</
Trans
>
</
StatusText
>
</
StatusText
>
)
}
)
}
</
Wrapper
>
</
Wrapper
>
...
...
src/components/Toggle/index.tsx
View file @
3840daf3
import
{
Trans
}
from
'
@lingui/macro
'
import
React
from
'
react
'
import
React
from
'
react
'
import
styled
from
'
styled-components/macro
'
import
styled
from
'
styled-components/macro
'
...
@@ -44,10 +45,10 @@ export default function Toggle({ id, isActive, toggle }: ToggleProps) {
...
@@ -44,10 +45,10 @@ export default function Toggle({ id, isActive, toggle }: ToggleProps) {
return
(
return
(
<
StyledToggle
id=
{
id
}
isActive=
{
isActive
}
onClick=
{
toggle
}
>
<
StyledToggle
id=
{
id
}
isActive=
{
isActive
}
onClick=
{
toggle
}
>
<
ToggleElement
isActive=
{
isActive
}
isOnSwitch=
{
true
}
>
<
ToggleElement
isActive=
{
isActive
}
isOnSwitch=
{
true
}
>
On
<
Trans
>
On
</
Trans
>
</
ToggleElement
>
</
ToggleElement
>
<
ToggleElement
isActive=
{
!
isActive
}
isOnSwitch=
{
false
}
>
<
ToggleElement
isActive=
{
!
isActive
}
isOnSwitch=
{
false
}
>
Off
<
Trans
>
Off
</
Trans
>
</
ToggleElement
>
</
ToggleElement
>
</
StyledToggle
>
</
StyledToggle
>
)
)
...
...
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