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
495fb062
Commit
495fb062
authored
Aug 14, 2019
by
ian-jh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
restore to beta
parent
59e3f34d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
63 additions
and
60 deletions
+63
-60
index.js
src/components/TransactionDetails/index.js
+5
-7
App.js
src/pages/App.js
+58
-53
No files found.
src/components/TransactionDetails/index.js
View file @
495fb062
...
...
@@ -91,9 +91,7 @@ const Popup = styled(Flex)`
border-radius: 8px;
line-height: 183.52%;
background: #404040;
border-radius: 8px;
animation:
${
fadeIn
}
0.15s linear;
color:
${({
theme
})
=>
theme
.
textColor
}
;
font-style: italic;
...
...
@@ -646,10 +644,10 @@ export default function TransactionDetails(props) {
<
ValueWrapper
>
{
b
(
`
${
amountFormatter
(
props
.
independentValueParsed
,
props
.
in
dependentDecimals
,
Math
.
min
(
4
,
props
.
in
dependentDecimals
)
)}
${
props
.
out
putSymbol
}
`
props
.
dependentValueMaximum
,
props
.
dependentDecimals
,
Math
.
min
(
4
,
props
.
dependentDecimals
)
)}
${
props
.
in
putSymbol
}
`
)}
<
/ValueWrapper>{' '
}
<
/div
>
...
...
src/pages/App.js
View file @
495fb062
...
...
@@ -51,59 +51,64 @@ export default function App() {
return
(
<>
<
Suspense
fallback
=
{
null
}
>
<
HeaderWrapper
>
<
Header
/>
<
/HeaderWrapper
>
<
BodyWrapper
>
<
Body
>
<
Web3ReactManager
>
<
BrowserRouter
>
<
NavigationTabs
/>
{
/* this Suspense is for route code-splitting */
}
<
Suspense
fallback
=
{
null
}
>
<
Switch
>
<
Route
exact
strict
path
=
"
/swap
"
component
=
{
Swap
}
/
>
<
Route
exact
strict
path
=
"
/swap/:tokenAddress?
"
render
=
{({
match
})
=>
{
if
(
isAddress
(
match
.
params
.
tokenAddress
))
{
return
<
Swap
initialCurrency
=
{
isAddress
(
match
.
params
.
tokenAddress
)}
/
>
}
else
{
return
<
Redirect
to
=
{{
pathname
:
'
/swap
'
}}
/
>
}
}}
/
>
<
Route
exact
strict
path
=
"
/send
"
component
=
{
Send
}
/
>
<
Route
exact
strict
path
=
"
/send/:tokenAddress?
"
render
=
{({
match
})
=>
{
if
(
isAddress
(
match
.
params
.
tokenAddress
))
{
return
<
Send
initialCurrency
=
{
isAddress
(
match
.
params
.
tokenAddress
)}
/
>
}
else
{
return
<
Redirect
to
=
{{
pathname
:
'
/send
'
}}
/
>
}
}}
/
>
<
Route
path
=
{[
'
/add-liquidity
'
,
'
/remove-liquidity
'
,
'
/create-exchange
'
,
'
/create-exchange/:tokenAddress?
'
]}
component
=
{
Pool
}
/
>
<
Redirect
to
=
"
/swap
"
/>
<
/Switch
>
<
/Suspense
>
<
/BrowserRouter
>
<
/Web3ReactManager
>
<
/Body
>
<
/BodyWrapper
>
<
AppWrapper
>
<
HeaderWrapper
>
<
Header
/>
<
/HeaderWrapper
>
<
BodyWrapper
>
<
Body
>
<
Web3ReactManager
>
<
BrowserRouter
>
<
NavigationTabs
/>
{
/* this Suspense is for route code-splitting */
}
<
Suspense
fallback
=
{
null
}
>
<
Switch
>
<
Route
exact
strict
path
=
"
/swap
"
component
=
{
Swap
}
/
>
<
Route
exact
strict
path
=
"
/swap/:tokenAddress?
"
render
=
{({
match
})
=>
{
if
(
isAddress
(
match
.
params
.
tokenAddress
))
{
return
<
Swap
initialCurrency
=
{
isAddress
(
match
.
params
.
tokenAddress
)}
/
>
}
else
{
return
<
Redirect
to
=
{{
pathname
:
'
/swap
'
}}
/
>
}
}}
/
>
<
Route
exact
strict
path
=
"
/send
"
component
=
{
Send
}
/
>
<
Route
exact
strict
path
=
"
/send/:tokenAddress?
"
render
=
{({
match
})
=>
{
if
(
isAddress
(
match
.
params
.
tokenAddress
))
{
return
<
Send
initialCurrency
=
{
isAddress
(
match
.
params
.
tokenAddress
)}
/
>
}
else
{
return
<
Redirect
to
=
{{
pathname
:
'
/send
'
}}
/
>
}
}}
/
>
<
Route
path
=
{[
'
/add-liquidity
'
,
'
/remove-liquidity
'
,
'
/create-exchange
'
,
'
/create-exchange/:tokenAddress?
'
]}
component
=
{
Pool
}
/
>
<
Redirect
to
=
"
/swap
"
/>
<
/Switch
>
<
/Suspense
>
<
/BrowserRouter
>
<
/Web3ReactManager
>
<
/Body
>
<
/BodyWrapper
>
<
FooterWrapper
>
<
Footer
/>
<
/FooterWrapper
>
<
/AppWrapper
>
<
/Suspense
>
<
/
>
)
...
...
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