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
a7f59912
Unverified
Commit
a7f59912
authored
Jul 29, 2021
by
Jordan Frankfurt
Committed by
GitHub
Jul 29, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add link (#2113)
parent
676890d8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
3 deletions
+22
-3
AddLiquidityNetworkAlert.tsx
src/components/NetworkAlert/AddLiquidityNetworkAlert.tsx
+5
-1
MinimalNetworkAlert.tsx
src/components/NetworkAlert/MinimalNetworkAlert.tsx
+5
-1
NetworkAlert.tsx
src/components/NetworkAlert/NetworkAlert.tsx
+5
-1
styles.ts
src/components/NetworkAlert/styles.ts
+7
-0
No files found.
src/components/NetworkAlert/AddLiquidityNetworkAlert.tsx
View file @
a7f59912
...
...
@@ -11,6 +11,7 @@ import { ArrowDownCircle } from 'react-feather'
import
{
useArbitrumAlphaAlert
,
useDarkModeManager
}
from
'
state/user/hooks
'
import
styled
from
'
styled-components/macro
'
import
{
ExternalLink
,
MEDIA_WIDTHS
}
from
'
theme
'
import
{
ReadMoreLink
}
from
'
./styles
'
const
L2Icon
=
styled
.
img
`
display: none;
...
...
@@ -117,7 +118,10 @@ export function AddLiquidityNetworkAlert() {
<
L2Icon
src=
{
info
.
logoUrl
}
/>
<
Body
>
<
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://app.intercom.com/a/apps/ggour1ku/articles/articles/5392809/show"
>
<
Trans
>
Read more
</
Trans
>
</
ReadMoreLink
>
</
Body
>
<
LinkOutToBridge
href=
{
depositUrl
}
>
<
Trans
>
Deposit to
{
info
.
label
}
</
Trans
>
...
...
src/components/NetworkAlert/MinimalNetworkAlert.tsx
View file @
a7f59912
...
...
@@ -11,6 +11,7 @@ import { ArrowDownCircle } from 'react-feather'
import
{
useArbitrumAlphaAlert
,
useDarkModeManager
}
from
'
state/user/hooks
'
import
styled
from
'
styled-components/macro
'
import
{
ExternalLink
,
MEDIA_WIDTHS
}
from
'
theme
'
import
{
ReadMoreLink
}
from
'
./styles
'
const
L2Icon
=
styled
.
img
`
display: none;
...
...
@@ -117,7 +118,10 @@ export function MinimalNetworkAlert() {
<
L2Icon
src=
{
info
.
logoUrl
}
/>
<
Body
>
<
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://app.intercom.com/a/apps/ggour1ku/articles/articles/5392809/show"
>
<
Trans
>
Read more
</
Trans
>
</
ReadMoreLink
>
</
Body
>
<
LinkOutToBridge
href=
{
depositUrl
}
>
<
Trans
>
Deposit to
{
info
.
label
}
</
Trans
>
...
...
src/components/NetworkAlert/NetworkAlert.tsx
View file @
a7f59912
...
...
@@ -8,6 +8,7 @@ import { useETHBalances } from 'state/wallet/hooks'
import
styled
,
{
css
}
from
'
styled-components/macro
'
import
{
ExternalLink
,
MEDIA_WIDTHS
}
from
'
theme
'
import
{
CHAIN_INFO
}
from
'
../../constants/chains
'
import
{
ReadMoreLink
}
from
'
./styles
'
const
L2Icon
=
styled
.
img
`
width: 40px;
...
...
@@ -152,7 +153,10 @@ export function NetworkAlert() {
<
Trans
>
This is an alpha release of Uniswap on the
{
info
.
label
}
network. You must bridge L1 assets to the network to
swap them.
</
Trans
>
</
Trans
>
{
'
'
}
<
ReadMoreLink
href=
"https://app.intercom.com/a/apps/ggour1ku/articles/articles/5392809/show"
>
<
Trans
>
Read more
</
Trans
>
</
ReadMoreLink
>
</
Body
>
</
ContentWrapper
>
<
LinkOutToBridge
href=
{
depositUrl
}
>
...
...
src/components/NetworkAlert/styles.ts
0 → 100644
View file @
a7f59912
import
styled
from
'
styled-components/macro
'
import
{
ExternalLink
}
from
'
theme
'
export
const
ReadMoreLink
=
styled
(
ExternalLink
)
`
color: white;
text-decoration: underline;
`
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