Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

Commit

Permalink
fix: remove Link's exact attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
CanRau committed Oct 6, 2018
1 parent e73033f commit 12f68d1
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/components/Footer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ const Footer = ({
<Link
to={link.to}
activeClassName={link.lc ? `active-lang` : `active`}
exact
>
{link.title}
</Link>
Expand Down
4 changes: 1 addition & 3 deletions src/components/Header/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class Header extends Component {
<div css={style.headerTop}>
<div css={style.topInner}>
<div css={style.headerBrand}>
<Link to={homepage.slug} {...css(style.headerLink)} exact>
<Link to={homepage.slug} {...css(style.headerLink)}>
<h2>
{homepage.header.title}
{homepage.header.subtitle && ` - ${homepage.header.subtitle}`}
Expand All @@ -62,7 +62,6 @@ class Header extends Component {
<Link
to={link.to}
activeClassName="active"
exact
{...css(style.headerLink, style.headerMeta_headerLink)}
>
<span css={link.titleShort && visible.minMd}>
Expand Down Expand Up @@ -130,7 +129,6 @@ class Header extends Component {
<Link
to={link.to}
activeClassName="active"
exact
{...css({
...style.headerLink,
...style.headerNav_headerLink,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Link.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const Link = ({
{children}
</a>
) : (
<GatsbyLink exact to={to} {...props}>
<GatsbyLink to={to} {...props}>
{children}
</GatsbyLink>
)
Expand Down
3 changes: 1 addition & 2 deletions src/templates/BlogPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ const BlogPage = props => {
</Link>

{filter && (
<Link to={props.data.page.frontmatter.slug} exact>
<Link to={props.data.page.frontmatter.slug}>
{props.data.page.frontmatter.sortLabels.all}
</Link>
)}
Expand All @@ -171,7 +171,6 @@ const BlogPage = props => {
to={props.location.pathname}
sort="asc"
persistQuery
exact
{...css({
pointerEvents: isSortAsc && `none`,
color: isSortAsc && colors.grayTurqoise,
Expand Down

0 comments on commit 12f68d1

Please sign in to comment.