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
462f2482
Unverified
Commit
462f2482
authored
May 20, 2020
by
Moody Salem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the shifting between send/swap tabs
parent
2ff8f5a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
index.tsx
src/components/TokenWarningCard/index.tsx
+3
-2
No files found.
src/components/TokenWarningCard/index.tsx
View file @
462f2482
...
@@ -125,14 +125,15 @@ export default function TokenWarningCard({ token, ...rest }: TokenWarningCardPro
...
@@ -125,14 +125,15 @@ export default function TokenWarningCard({ token, ...rest }: TokenWarningCardPro
const
WarningContainer
=
styled
.
div
`
const
WarningContainer
=
styled
.
div
`
max-width: 420px;
max-width: 420px;
width: 100%;
width: 100%;
padding: 1rem;
padding-left: 1rem;
padding-right: 1rem;
`
`
export
function
TokenWarningCards
({
tokens
}:
{
tokens
:
{
[
field
in
Field
]?:
Token
}
})
{
export
function
TokenWarningCards
({
tokens
}:
{
tokens
:
{
[
field
in
Field
]?:
Token
}
})
{
return
(
return
(
<
WarningContainer
>
<
WarningContainer
>
{
Object
.
keys
(
tokens
).
map
(
field
=>
{
Object
.
keys
(
tokens
).
map
(
field
=>
tokens
[
field
]
?
<
TokenWarningCard
style=
{
{
marginBottom
:
1
0
}
}
key=
{
field
}
token=
{
tokens
[
field
]
}
/>
:
null
tokens
[
field
]
?
<
TokenWarningCard
style=
{
{
marginBottom
:
1
4
}
}
key=
{
field
}
token=
{
tokens
[
field
]
}
/>
:
null
)
}
)
}
</
WarningContainer
>
</
WarningContainer
>
)
)
...
...
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