Skip to content

Commit

Permalink
Merge pull request #38 from DeKal/add-home-id
Browse files Browse the repository at this point in the history
Fix bug Home components doesn't have id to navigate to #37
  • Loading branch information
DeKal authored Dec 3, 2019
2 parents 057ddf6 + 553f975 commit 0eb6e35
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions views/components/Home.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as React from 'react'

import { HOME } from '~/consts/pages'
import styled from 'styled-components/macro'

const Home = () => (
<HomeSection>
<HomeSection id={HOME}>
<Background />
<Overlay>
<div className="container">
Expand Down
6 changes: 5 additions & 1 deletion views/components/__test__/__snapshots__/Home.spec.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

exports[`Home should render without throwing an error 1`] = `
<Home>
<Home__HomeSection>
<Home__HomeSection
id="Home"
>
<StyledComponent
forwardedComponent={
Object {
Expand All @@ -29,9 +31,11 @@ exports[`Home should render without throwing an error 1`] = `
}
}
forwardedRef={null}
id="Home"
>
<section
className="Home__HomeSection-sc-1eskvms-0 blNagb"
id="Home"
>
<Home__Background>
<StyledComponent
Expand Down

1 comment on commit 0eb6e35

@vercel
Copy link

@vercel vercel bot commented on 0eb6e35 Dec 3, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.