FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

add link (#2113) · Osub/interface@a7f5991 · GitHub

Repository navigation

Commit a7f5991

Browse files
authored
add link (Uniswap#2113)
1 parent 676890d commit a7f5991

4 files changed

Lines changed: 22 additions & 3 deletions

File tree

‎src/components/NetworkAlert/AddLiquidityNetworkAlert.tsx‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { ArrowDownCircle } from 'react-feather'
1111
import { useArbitrumAlphaAlert, useDarkModeManager } from 'state/user/hooks'
1212
import styled from 'styled-components/macro'
1313
import { ExternalLink, MEDIA_WIDTHS } from 'theme'
14+
import { ReadMoreLink } from './styles'
1415

1516
const L2Icon = styled.img`
1617
display: none;
@@ -117,7 +118,10 @@ export function AddLiquidityNetworkAlert() {
117118
<L2Icon src={info.logoUrl} />
118119
<Body>
119120
<Trans>This is an alpha release of Uniswap on the {info.label} network.</Trans>
120-
<DesktopTextBreak /> <Trans>You must bridge L1 assets to the network to use them.</Trans>
121+
<DesktopTextBreak /> <Trans>You must bridge L1 assets to the network to use them.</Trans>{' '}
122+
<ReadMoreLink href="https://app.intercom.com/a/apps/ggour1ku/articles/articles/5392809/show">
123+
<Trans>Read more</Trans>
124+
</ReadMoreLink>
121125
</Body>
122126
<LinkOutToBridge href={depositUrl}>
123127
<Trans>Deposit to {info.label}</Trans>

‎src/components/NetworkAlert/MinimalNetworkAlert.tsx‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { ArrowDownCircle } from 'react-feather'
1111
import { useArbitrumAlphaAlert, useDarkModeManager } from 'state/user/hooks'
1212
import styled from 'styled-components/macro'
1313
import { ExternalLink, MEDIA_WIDTHS } from 'theme'
14+
import { ReadMoreLink } from './styles'
1415

1516
const L2Icon = styled.img`
1617
display: none;
@@ -117,7 +118,10 @@ export function MinimalNetworkAlert() {
117118
<L2Icon src={info.logoUrl} />
118119
<Body>
119120
<Trans>This is an alpha release of Uniswap on the {info.label} network.</Trans>
120-
<DesktopTextBreak /> <Trans>You must bridge L1 assets to the network to use them.</Trans>
121+
<DesktopTextBreak /> <Trans>You must bridge L1 assets to the network to use them.</Trans>{' '}
122+
<ReadMoreLink href="https://app.intercom.com/a/apps/ggour1ku/articles/articles/5392809/show">
123+
<Trans>Read more</Trans>
124+
</ReadMoreLink>
121125
</Body>
122126
<LinkOutToBridge href={depositUrl}>
123127
<Trans>Deposit to {info.label}</Trans>

‎src/components/NetworkAlert/NetworkAlert.tsx‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { useETHBalances } from 'state/wallet/hooks'
88
import styled, { css } from 'styled-components/macro'
99
import { ExternalLink, MEDIA_WIDTHS } from 'theme'
1010
import { CHAIN_INFO } from '../../constants/chains'
11+
import { ReadMoreLink } from './styles'
1112

1213
const L2Icon = styled.img`
1314
width: 40px;
@@ -152,7 +153,10 @@ export function NetworkAlert() {
152153
<Trans>
153154
This is an alpha release of Uniswap on the {info.label} network. You must bridge L1 assets to the network to
154155
swap them.
155-
</Trans>
156+
</Trans>{' '}
157+
<ReadMoreLink href="https://app.intercom.com/a/apps/ggour1ku/articles/articles/5392809/show">
158+
<Trans>Read more</Trans>
159+
</ReadMoreLink>
156160
</Body>
157161
</ContentWrapper>
158162
<LinkOutToBridge href={depositUrl}>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import styled from 'styled-components/macro'
2+
import { ExternalLink } from 'theme'
3+
4+
export const ReadMoreLink = styled(ExternalLink)`
5+
color: white;
6+
text-decoration: underline;
7+
`

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL