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
6b99740f
Unverified
Commit
6b99740f
authored
Sep 01, 2021
by
Jordan Frankfurt
Committed by
GitHub
Sep 01, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use network-specific help center link (#2285)
parent
f5557a43
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
13 deletions
+18
-13
AddLiquidityNetworkAlert.tsx
src/components/NetworkAlert/AddLiquidityNetworkAlert.tsx
+6
-4
MinimalNetworkAlert.tsx
src/components/NetworkAlert/MinimalNetworkAlert.tsx
+6
-4
NetworkAlert.tsx
src/components/NetworkAlert/NetworkAlert.tsx
+6
-5
No files found.
src/components/NetworkAlert/AddLiquidityNetworkAlert.tsx
View file @
6b99740f
...
@@ -110,16 +110,18 @@ export function AddLiquidityNetworkAlert() {
...
@@ -110,16 +110,18 @@ export function AddLiquidityNetworkAlert() {
return
null
return
null
}
}
const
info
=
CHAIN_INFO
[
chainId
as
SupportedL2ChainId
]
const
info
=
CHAIN_INFO
[
chainId
as
SupportedL2ChainId
]
const
depositUrl
=
[
SupportedChainId
.
OPTIMISM
,
SupportedChainId
.
OPTIMISTIC_KOVAN
].
includes
(
chainId
)
const
isOptimism
=
[
SupportedChainId
.
OPTIMISM
,
SupportedChainId
.
OPTIMISTIC_KOVAN
].
includes
(
chainId
)
?
`
${
info
.
bridge
}
?chainId=1`
const
depositUrl
=
isOptimism
?
`
${
info
.
bridge
}
?chainId=1`
:
info
.
bridge
:
info
.
bridge
const
readMoreLink
=
isOptimism
?
'
https://help.uniswap.org/en/articles/5392809-how-to-deposit-tokens-to-optimism
'
:
'
https://help.uniswap.org/en/articles/5538618-how-to-deposit-tokens-to-arbitrum
'
return
(
return
(
<
Wrapper
darkMode=
{
darkMode
}
chainId=
{
chainId
}
logoUrl=
{
info
.
logoUrl
}
>
<
Wrapper
darkMode=
{
darkMode
}
chainId=
{
chainId
}
logoUrl=
{
info
.
logoUrl
}
>
<
L2Icon
src=
{
info
.
logoUrl
}
/>
<
L2Icon
src=
{
info
.
logoUrl
}
/>
<
Body
>
<
Body
>
<
Trans
>
This is an alpha release of Uniswap on the
{
info
.
label
}
network.
</
Trans
>
<
Trans
>
This is an alpha release of Uniswap on the
{
info
.
label
}
network.
</
Trans
>
<
DesktopTextBreak
/>
<
Trans
>
You must bridge L1 assets to the network to use them.
</
Trans
>
{
'
'
}
<
DesktopTextBreak
/>
<
Trans
>
You must bridge L1 assets to the network to use them.
</
Trans
>
{
'
'
}
<
ReadMoreLink
href=
"https://help.uniswap.org/en/articles/5392809-how-to-deposit-tokens-to-optimism"
>
<
ReadMoreLink
href=
{
readMoreLink
}
>
<
Trans
>
Read more
</
Trans
>
<
Trans
>
Read more
</
Trans
>
</
ReadMoreLink
>
</
ReadMoreLink
>
</
Body
>
</
Body
>
...
...
src/components/NetworkAlert/MinimalNetworkAlert.tsx
View file @
6b99740f
...
@@ -110,16 +110,18 @@ export function MinimalNetworkAlert() {
...
@@ -110,16 +110,18 @@ export function MinimalNetworkAlert() {
return
null
return
null
}
}
const
info
=
CHAIN_INFO
[
chainId
as
SupportedL2ChainId
]
const
info
=
CHAIN_INFO
[
chainId
as
SupportedL2ChainId
]
const
depositUrl
=
[
SupportedChainId
.
OPTIMISM
,
SupportedChainId
.
OPTIMISTIC_KOVAN
].
includes
(
chainId
)
const
isOptimism
=
[
SupportedChainId
.
OPTIMISM
,
SupportedChainId
.
OPTIMISTIC_KOVAN
].
includes
(
chainId
)
?
`
${
info
.
bridge
}
?chainId=1`
const
depositUrl
=
isOptimism
?
`
${
info
.
bridge
}
?chainId=1`
:
info
.
bridge
:
info
.
bridge
const
readMoreLink
=
isOptimism
?
'
https://help.uniswap.org/en/articles/5392809-how-to-deposit-tokens-to-optimism
'
:
'
https://help.uniswap.org/en/articles/5538618-how-to-deposit-tokens-to-arbitrum
'
return
(
return
(
<
Wrapper
darkMode=
{
darkMode
}
chainId=
{
chainId
}
logoUrl=
{
info
.
logoUrl
}
>
<
Wrapper
darkMode=
{
darkMode
}
chainId=
{
chainId
}
logoUrl=
{
info
.
logoUrl
}
>
<
L2Icon
src=
{
info
.
logoUrl
}
/>
<
L2Icon
src=
{
info
.
logoUrl
}
/>
<
Body
>
<
Body
>
<
Trans
>
This is an alpha release of Uniswap on the
{
info
.
label
}
network.
</
Trans
>
<
Trans
>
This is an alpha release of Uniswap on the
{
info
.
label
}
network.
</
Trans
>
<
DesktopTextBreak
/>
<
Trans
>
You must bridge L1 assets to the network to use them.
</
Trans
>
{
'
'
}
<
DesktopTextBreak
/>
<
Trans
>
You must bridge L1 assets to the network to use them.
</
Trans
>
{
'
'
}
<
ReadMoreLink
href=
"https://help.uniswap.org/en/articles/5392809-how-to-deposit-tokens-to-optimism"
>
<
ReadMoreLink
href=
{
readMoreLink
}
>
<
Trans
>
Read more
</
Trans
>
<
Trans
>
Read more
</
Trans
>
</
ReadMoreLink
>
</
ReadMoreLink
>
</
Body
>
</
Body
>
...
...
src/components/NetworkAlert/NetworkAlert.tsx
View file @
6b99740f
...
@@ -137,10 +137,11 @@ export function NetworkAlert() {
...
@@ -137,10 +137,11 @@ export function NetworkAlert() {
return
null
return
null
}
}
const
info
=
CHAIN_INFO
[
chainId
as
SupportedL2ChainId
]
const
info
=
CHAIN_INFO
[
chainId
as
SupportedL2ChainId
]
const
depositUrl
=
[
SupportedChainId
.
OPTIMISM
,
SupportedChainId
.
OPTIMISTIC_KOVAN
].
includes
(
chainId
)
const
isOptimism
=
[
SupportedChainId
.
OPTIMISM
,
SupportedChainId
.
OPTIMISTIC_KOVAN
].
includes
(
chainId
)
?
`
${
info
.
bridge
}
?chainId=1`
const
depositUrl
=
isOptimism
?
`
${
info
.
bridge
}
?chainId=1`
:
info
.
bridge
:
info
.
bridge
const
readMoreLink
=
isOptimism
?
'
https://help.uniswap.org/en/articles/5392809-how-to-deposit-tokens-to-optimism
'
:
'
https://help.uniswap.org/en/articles/5538618-how-to-deposit-tokens-to-arbitrum
'
return
(
return
(
<
RootWrapper
chainId=
{
chainId
}
darkMode=
{
darkMode
}
logoUrl=
{
info
.
logoUrl
}
>
<
RootWrapper
chainId=
{
chainId
}
darkMode=
{
darkMode
}
logoUrl=
{
info
.
logoUrl
}
>
<
CloseIcon
onClick=
{
dismiss
}
/>
<
CloseIcon
onClick=
{
dismiss
}
/>
...
@@ -154,7 +155,7 @@ export function NetworkAlert() {
...
@@ -154,7 +155,7 @@ export function NetworkAlert() {
This is an alpha release of Uniswap on the
{
info
.
label
}
network. You must bridge L1 assets to the network to
This is an alpha release of Uniswap on the
{
info
.
label
}
network. You must bridge L1 assets to the network to
swap them.
swap them.
</
Trans
>
{
'
'
}
</
Trans
>
{
'
'
}
<
ReadMoreLink
href=
"https://help.uniswap.org/en/articles/5392809-how-to-deposit-tokens-to-optimism"
>
<
ReadMoreLink
href=
{
readMoreLink
}
>
<
Trans
>
Read more
</
Trans
>
<
Trans
>
Read more
</
Trans
>
</
ReadMoreLink
>
</
ReadMoreLink
>
</
Body
>
</
Body
>
...
...
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