Commit b57f58ab authored by Moody Salem's avatar Moody Salem

fix(title): link to relative path

parent 2f40c4f6
import { ChainId, WETH } from '@uniswap/sdk' import { ChainId, WETH } from '@uniswap/sdk'
import React from 'react' import React from 'react'
import { isMobile } from 'react-device-detect' import { isMobile } from 'react-device-detect'
import { Link as HistoryLink } from 'react-router-dom'
import { Text } from 'rebass' import { Text } from 'rebass'
import styled from 'styled-components' import styled from 'styled-components'
...@@ -52,7 +51,7 @@ const HeaderElementWrap = styled.div` ...@@ -52,7 +51,7 @@ const HeaderElementWrap = styled.div`
`}; `};
` `
const Title = styled.div` const Title = styled.a`
display: flex; display: flex;
align-items: center; align-items: center;
pointer-events: auto; pointer-events: auto;
...@@ -98,7 +97,7 @@ const NetworkCard = styled(YellowCard)` ...@@ -98,7 +97,7 @@ const NetworkCard = styled(YellowCard)`
padding: 8px 12px; padding: 8px 12px;
` `
const UniIcon = styled.a` const UniIcon = styled.div`
transition: transform 0.3s ease; transition: transform 0.3s ease;
:hover { :hover {
transform: rotate(-5deg); transform: rotate(-5deg);
...@@ -145,18 +144,12 @@ export default function Header() { ...@@ -145,18 +144,12 @@ export default function Header() {
<HeaderFrame> <HeaderFrame>
<RowBetween style={{ alignItems: 'flex-start' }} padding="1rem 1rem 0 1rem"> <RowBetween style={{ alignItems: 'flex-start' }} padding="1rem 1rem 0 1rem">
<HeaderElement> <HeaderElement>
<Title> <Title href=".">
<UniIcon id="link" href="/"> <UniIcon>
<img src={isDark ? LogoDark : Logo} alt="logo" /> <img src={isDark ? LogoDark : Logo} alt="logo" />
</UniIcon> </UniIcon>
<TitleText> <TitleText>
<HistoryLink id="link" to="/"> <img style={{ marginLeft: '4px', marginTop: '4px' }} src={isDark ? WordmarkDark : Wordmark} alt="logo" />
<img
style={{ marginLeft: '4px', marginTop: '4px' }}
src={isDark ? WordmarkDark : Wordmark}
alt="logo"
/>
</HistoryLink>
</TitleText> </TitleText>
</Title> </Title>
</HeaderElement> </HeaderElement>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment