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
149b18f0
Unverified
Commit
149b18f0
authored
Feb 01, 2023
by
eddie
Committed by
GitHub
Feb 01, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: about footer link weights (#5898)
parent
52a43f3d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
25 deletions
+14
-25
AboutFooter.tsx
src/components/About/AboutFooter.tsx
+8
-25
index.tsx
src/theme/components/index.tsx
+6
-0
No files found.
src/components/About/AboutFooter.tsx
View file @
149b18f0
import
{
TraceEvent
}
from
'
@uniswap/analytics
'
import
{
BrowserEvent
,
InterfaceElementName
,
SharedEventName
}
from
'
@uniswap/analytics-events
'
import
{
Link
}
from
'
react-router-dom
'
import
{
useIsDarkMode
}
from
'
state/user/hooks
'
import
styled
from
'
styled-components/macro
'
import
{
BREAKPOINTS
,
ExternalLink
}
from
'
theme
'
import
{
BREAKPOINTS
,
ExternalLink
,
StyledRouterLink
}
from
'
theme
'
import
{
DiscordIcon
,
GithubIcon
,
TwitterIcon
}
from
'
./Icons
'
import
darkUnicornImgSrc
from
'
./images/unicornEmbossDark.png
'
...
...
@@ -97,14 +96,10 @@ const ExternalTextLink = styled(ExternalLink)`
color:
${({
theme
})
=>
theme
.
textSecondary
}
;
`
const
TextLink
=
styled
(
Link
)
`
const
TextLink
=
styled
(
StyledRouter
Link
)
`
font-size: 16px;
line-height: 20px;
color:
${({
theme
})
=>
theme
.
textSecondary
}
;
text-decoration: none;
&:hover {
text-decoration: underline;
}
`
const
Copyright
=
styled
.
span
`
...
...
@@ -158,15 +153,9 @@ export const AboutFooter = () => {
</
LinkGroup
>
<
LinkGroup
>
<
LinkGroupTitle
>
Protocol
</
LinkGroupTitle
>
<
ExternalTextLink
href=
"https://uniswap.org/community"
target=
"_blank"
rel=
"noopener noreferrer"
>
Community
</
ExternalTextLink
>
<
ExternalTextLink
href=
"https://uniswap.org/governance"
target=
"_blank"
rel=
"noopener noreferrer"
>
Governance
</
ExternalTextLink
>
<
ExternalTextLink
href=
"https://uniswap.org/developers"
target=
"_blank"
rel=
"noopener noreferrer"
>
Developers
</
ExternalTextLink
>
<
ExternalTextLink
href=
"https://uniswap.org/community"
>
Community
</
ExternalTextLink
>
<
ExternalTextLink
href=
"https://uniswap.org/governance"
>
Governance
</
ExternalTextLink
>
<
ExternalTextLink
href=
"https://uniswap.org/developers"
>
Developers
</
ExternalTextLink
>
</
LinkGroup
>
<
LinkGroup
>
<
LinkGroupTitle
>
Company
</
LinkGroupTitle
>
...
...
@@ -175,18 +164,14 @@ export const AboutFooter = () => {
name=
{
SharedEventName
.
ELEMENT_CLICKED
}
element=
{
InterfaceElementName
.
CAREERS_LINK
}
>
<
ExternalTextLink
href=
"https://boards.greenhouse.io/uniswaplabs"
target=
"_blank"
rel=
"noopener noreferrer"
>
Careers
</
ExternalTextLink
>
<
ExternalTextLink
href=
"https://boards.greenhouse.io/uniswaplabs"
>
Careers
</
ExternalTextLink
>
</
TraceEvent
>
<
TraceEvent
events=
{
[
BrowserEvent
.
onClick
]
}
name=
{
SharedEventName
.
ELEMENT_CLICKED
}
element=
{
InterfaceElementName
.
BLOG_LINK
}
>
<
ExternalTextLink
href=
"https://uniswap.org/blog"
target=
"_blank"
rel=
"noopener noreferrer"
>
Blog
</
ExternalTextLink
>
<
ExternalTextLink
href=
"https://uniswap.org/blog"
>
Blog
</
ExternalTextLink
>
</
TraceEvent
>
</
LinkGroup
>
<
LinkGroup
>
...
...
@@ -209,9 +194,7 @@ export const AboutFooter = () => {
name=
{
SharedEventName
.
ELEMENT_CLICKED
}
element=
{
InterfaceElementName
.
SUPPORT_LINK
}
>
<
ExternalTextLink
href=
"https://support.uniswap.org/hc/en-us"
target=
"_blank"
rel=
"noopener noreferrer"
>
Help Center
</
ExternalTextLink
>
<
ExternalTextLink
href=
"https://support.uniswap.org/hc/en-us"
>
Help Center
</
ExternalTextLink
>
</
TraceEvent
>
</
LinkGroup
>
</
FooterLinks
>
...
...
src/theme/components/index.tsx
View file @
149b18f0
...
...
@@ -182,6 +182,12 @@ const StyledLink = styled.a`
$
{
ClickableStyle
}
$
{
LinkStyle
}
`
export const StyledRouterLink = styled(Link)`
$
{
ClickableStyle
}
$
{
LinkStyle
}
`
/**
* Outbound link that handles firing google analytics events
*/
...
...
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