forked from Uniswap/interface
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from helix-bridge/jay/support-v2
feat: support swap v2
- Loading branch information
Showing
12 changed files
with
188 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,37 @@ | ||
import { EnvelopeHeartIcon } from 'components/Icons/EnvelopeHeart' | ||
import Row from 'components/Row' | ||
import { SupportArticleURL } from 'constants/supportArticles' | ||
import { Trans } from 'i18n' | ||
import styled from 'styled-components' | ||
import { ExternalLink } from 'theme/components' | ||
// import { EnvelopeHeartIcon } from 'components/Icons/EnvelopeHeart' | ||
// import Row from 'components/Row' | ||
// import { SupportArticleURL } from 'constants/supportArticles' | ||
// import { Trans } from 'i18n' | ||
// import styled from 'styled-components' | ||
// import { ExternalLink } from 'theme/components' | ||
|
||
const StyledExternalLink = styled(ExternalLink)` | ||
width: fit-content; | ||
border-radius: 16px; | ||
padding: 4px 8px; | ||
font-size: 14px; | ||
font-weight: 485; | ||
line-height: 20px; | ||
background: ${({ theme }) => theme.surface2}; | ||
color: ${({ theme }) => theme.neutral2}; | ||
:hover { | ||
background: ${({ theme }) => theme.surface3}; | ||
color: ${({ theme }) => theme.neutral1}; | ||
path { | ||
fill: ${({ theme }) => theme.neutral1}; | ||
} | ||
opacity: unset; | ||
} | ||
stroke: none; | ||
` | ||
// const StyledExternalLink = styled(ExternalLink)` | ||
// width: fit-content; | ||
// border-radius: 16px; | ||
// padding: 4px 8px; | ||
// font-size: 14px; | ||
// font-weight: 485; | ||
// line-height: 20px; | ||
// background: ${({ theme }) => theme.surface2}; | ||
// color: ${({ theme }) => theme.neutral2}; | ||
// :hover { | ||
// background: ${({ theme }) => theme.surface3}; | ||
// color: ${({ theme }) => theme.neutral1}; | ||
// path { | ||
// fill: ${({ theme }) => theme.neutral1}; | ||
// } | ||
// opacity: unset; | ||
// } | ||
// stroke: none; | ||
// ` | ||
export default function GetHelp() { | ||
return ( | ||
<StyledExternalLink href={SupportArticleURL.HOME}> | ||
<Row gap="4px"> | ||
<EnvelopeHeartIcon /> | ||
<Trans i18nKey="common.getHelp.button" /> | ||
</Row> | ||
</StyledExternalLink> | ||
) | ||
return null | ||
// return ( | ||
// <StyledExternalLink href={SupportArticleURL.HOME}> | ||
// <Row gap="4px"> | ||
// <EnvelopeHeartIcon /> | ||
// <Trans i18nKey="common.getHelp.button" /> | ||
// </Row> | ||
// </StyledExternalLink> | ||
// ) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.