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
c9253206
Commit
c9253206
authored
Jan 22, 2018
by
Callil Capuozzo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add CTA on swap prompt
parent
20f4a663
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
9 deletions
+11
-9
App.css
src/App.css
+5
-2
App.js
src/App.js
+5
-6
ConnectionHelper.js
src/components/ConnectionHelper.js
+1
-1
No files found.
src/App.css
View file @
c9253206
...
...
@@ -165,9 +165,12 @@ input[type=number]::-webkit-outer-spin-button {
flex-direction
:
row
;
justify-content
:
center
;
align-items
:
center
;
color
:
blu
e
;
height
:
64
px
;
color
:
whit
e
;
height
:
48
px
;
transition
:
height
.3s
ease
;
background-color
:
#27AE60
;
background-color
:
#2F80ED
;
cursor
:
pointer
;
}
.expand
{
...
...
src/App.js
View file @
c9253206
...
...
@@ -665,13 +665,12 @@ class App extends Component {
<
/section
>
{
this
.
state
.
interaction
===
'
input
'
?
<
section
className
=
"
swap grey-bg border pa2
"
>
<
a
role
=
"
button
"
onClick
=
{()
=>
{
this
.
purchaseTokens
()}}
>
<
b
>
{
"
I want to swap
"
+
this
.
state
.
input
+
"
"
+
this
.
state
.
inputToken
.
value
+
"
for
"
+
(
this
.
state
.
output
/
10
**
18
).
toFixed
(
5
)
+
"
"
+
this
.
state
.
outputToken
.
value
}
<
/b
>
<
/a
>
<
a
className
=
"
swap border pa2
"
role
=
"
button
"
onClick
=
{()
=>
{
this
.
purchaseTokens
()}}
>
<
b
>
{
"
I want to swap
"
+
this
.
state
.
input
+
"
"
+
this
.
state
.
inputToken
.
value
+
"
for
"
+
this
.
state
.
output
/
10
**
18
+
"
"
+
this
.
state
.
outputToken
.
value
}
<
/b
>
{
/* <button> Approve </button> */
}
<
/
section
>
:
<
section
className
=
"
swap grey-bg hidden border pa2
"
><
/section
>
}
<
/
a
>
:
<
a
className
=
"
swap grey-bg hidden border pa2
"
><
/a
>
}
<
section
className
=
"
About
"
ref
=
{(
section
)
=>
{
this
.
About
=
section
;
}}
>
<
a
onClick
=
{()
=>
{
this
.
toggleAbout
()}}
className
=
"
link border pa2 f-a
"
>
...
...
src/components/ConnectionHelper.js
View file @
c9253206
...
...
@@ -82,7 +82,7 @@ function ConnectionHelper(props) {
return
(
<
div
className
=
"
grey-bg connection border pa2
"
>
<
p
>
Welcome
!
Uniswap
is
a
decentralized
exhange
platform
for
ERC20
Tokens
.
<
a
onClick
=
{()
=>
{
props
.
toggleAbout
()}}
className
=
"
f-a
"
>
How
it
works
↘
<
/a><br /
><
br
/>
Enter
an
input
value
below
to
get
started
.
<
/p
>
You
'
re connected. Enter a
value below to get started.</p>
<p>↓</p>
</div>
)
...
...
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