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
10dc4e2d
Commit
10dc4e2d
authored
Jan 07, 2019
by
Ross
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added ani
parent
33124d6f
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
188 additions
and
161 deletions
+188
-161
App.js
src/pages/App.js
+12
-15
App.scss
src/pages/App.scss
+21
-0
AddLiquidity.js
src/pages/Pool/AddLiquidity.js
+60
-57
index.js
src/pages/Send/index.js
+53
-49
index.js
src/pages/Swap/index.js
+42
-40
No files found.
src/pages/App.js
View file @
10dc4e2d
import
React
,
{
Component
}
from
'
react
'
;
import
{
connect
}
from
'
react-redux
'
;
import
{
BrowserRouter
,
Redirect
,
Route
}
from
'
react-router-dom
'
;
import
{
BrowserRouter
,
Redirect
,
Route
,
Switch
}
from
'
react-router-dom
'
;
import
MediaQuery
from
'
react-responsive
'
;
import
{
AnimatedSwitch
}
from
'
react-router-transition
'
;
//
import { AnimatedSwitch } from 'react-router-transition';
import
{
Web3Connect
,
startWatching
,
initialize
}
from
'
../ducks/web3connect
'
;
import
{
setAddresses
}
from
'
../ducks/addresses
'
;
import
Header
from
'
../components/Header
'
;
...
...
@@ -45,19 +45,16 @@ class App extends Component {
<
/MediaQuery
>
<
Web3Connect
/>
<
BrowserRouter
>
<
AnimatedSwitch
atEnter
=
{{
opacity
:
0
}}
atLeave
=
{{
opacity
:
0
}}
atActive
=
{{
opacity
:
1
}}
className
=
"
app__switch-wrapper
"
>
<
Switch
>
<
div
className
=
"
app__switch-wrapper
"
>
<
Route
exact
path
=
"
/swap
"
component
=
{
Swap
}
/
>
<
Route
exact
path
=
"
/send
"
component
=
{
Send
}
/
>
<
Route
exact
path
=
"
/add-liquidity
"
component
=
{
Pool
}
/
>
<
Route
exact
path
=
"
/remove-liquidity
"
component
=
{
Pool
}
/
>
<
Route
exact
path
=
"
/create-exchange/:tokenAddress?
"
component
=
{
Pool
}
/
>
<
Redirect
exact
from
=
"
/
"
to
=
"
/swap
"
/>
<
/AnimatedSwitch
>
<
/div
>
<
/Switch
>
<
/BrowserRouter
>
<
/div
>
);
...
...
src/pages/App.scss
View file @
10dc4e2d
...
...
@@ -30,3 +30,24 @@
//max-width: 560px;
}
}
@keyframes
title_fade_in
{
from
{
opacity
:
0
;
top
:
-10px
;
}
to
{
opacity
:
1
;
top
:
0px
;
}
}
.ani_title_fade_in
{
position
:
relative
;
opacity
:
0
;
animation
:
title_fade_in
cubic-bezier
(
0
.23
,
1
,
0
.32
,
1
)
1
;
animation-fill-mode
:
forwards
;
animation-duration
:
1
.2s
;
animation-delay
:
0s
;
}
\ No newline at end of file
src/pages/Pool/AddLiquidity.js
View file @
10dc4e2d
...
...
@@ -511,6 +511,8 @@ class AddLiquidity extends Component {
'
header--inactive
'
:
!
isConnected
,
})}
/
>
<
div
className
=
'
ani_title_fade_in
'
>
{
this
.
isNewExchange
()
?
(
...
...
@@ -572,6 +574,7 @@ class AddLiquidity extends Component {
<
/button
>
<
/div
>
<
/div
>
<
/div
>
];
}
}
...
...
src/pages/Send/index.js
View file @
10dc4e2d
...
...
@@ -718,7 +718,7 @@ class Send extends Component {
const
{
inputError
,
outputError
,
isValid
}
=
this
.
validate
();
return
(
<
div
className
=
"
send
"
>
<
div
className
=
"
send
"
>
<
MediaQuery
query
=
"
(max-width: 767px)
"
>
<
Header
/>
<
/MediaQuery
>
...
...
@@ -732,6 +732,8 @@ class Send extends Component {
'
header--inactive
'
:
!
this
.
props
.
isConnected
,
})}
/
>
<
div
className
=
'
ani_title_fade_in
'
>
<
CurrencyInputPanel
title
=
"
Input
"
description
=
{
lastEditedField
===
OUTPUT
?
estimatedText
:
''
}
...
...
@@ -783,6 +785,8 @@ class Send extends Component {
<
/button
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
);
}
...
...
src/pages/Swap/index.js
View file @
10dc4e2d
...
...
@@ -698,7 +698,6 @@ class Swap extends Component {
const
{
inputError
,
outputError
,
isValid
}
=
this
.
validate
();
return
(
<
div
className
=
"
swap
"
>
<
MediaQuery
query
=
"
(max-width: 767px)
"
>
...
...
@@ -714,6 +713,8 @@ class Swap extends Component {
'
header--inactive
'
:
!
this
.
props
.
isConnected
,
})}
/
>
<
div
className
=
'
ani_title_fade_in
'
>
<
CurrencyInputPanel
title
=
"
Input
"
description
=
{
lastEditedField
===
OUTPUT
?
estimatedText
:
''
}
...
...
@@ -757,6 +758,7 @@ class Swap extends Component {
<
/div
>
<
/div
>
<
/div
>
<
/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