Skip to content

Commit

Permalink
Revert "Revert "129-logo-link-add-text""
Browse files Browse the repository at this point in the history
This reverts commit f722978.
  • Loading branch information
loganbek committed Oct 2, 2021
1 parent 85d903f commit 543431e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/Pancake/Menu/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useLocation } from 'react-router-dom'
import styled from "styled-components";
import BigNumber from 'bignumber.js'
import throttle from "lodash/throttle";
import { Box } from "components/Pancake";
import { Box, Link } from "components/Pancake";
import { useTranslation } from 'contexts/Localization'
import { latinise } from 'utils/latinise'
import { getAddress } from 'utils/addressHelpers'
Expand Down Expand Up @@ -282,7 +282,7 @@ const Menu: React.FC<NavProps> = ({
return (
<Wrapper>
<StyledNav showMenu={showMenu}>
<LogoContainer>
<LogoContainer as={Link} href={homeLink?.href ?? "/"}>
<Logo
isPushed={isPushed}
togglePush={() => setIsPushed((prevState: boolean) => !prevState)}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Pancake/Menu/components/Logo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const Logo: React.FC<Props> = ({ isPushed, togglePush, isDark, href }) => {
{innerLogo}
</StyledLink>
) : (
<StyledLink to={href} aria-label="KogeFarm home page">
<StyledLink as="a" href={href} aria-label="KogeFarm home page">
{innerLogo}
</StyledLink>
)}
Expand Down

0 comments on commit 543431e

Please sign in to comment.