-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): update dependency eslint-config-airbnb to v19 (#314)
Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: João Pedro Schmitz <jpedroschmitz@hotmail.com>
- Loading branch information
1 parent
427c718
commit c4e962d
Showing
6 changed files
with
41 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
import React from 'react'; | ||
import { BaseComponentProps } from '@/types'; | ||
|
||
const Title: React.FC<BaseComponentProps> = (props) => { | ||
export default function Title(props: BaseComponentProps) { | ||
const { children } = props; | ||
|
||
return <h1>{children}</h1>; | ||
}; | ||
|
||
export default Title; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
import React from 'react'; | ||
import { PageProps } from 'gatsby'; | ||
|
||
const NotFound: React.FC<PageProps> = () => ( | ||
<main> | ||
<p>Sorry, page not found!</p> | ||
</main> | ||
); | ||
|
||
export default NotFound; | ||
export default function NotFound() { | ||
return ( | ||
<main> | ||
<p>Sorry, page not found!</p> | ||
</main> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
import React from 'react'; | ||
import { PageProps } from 'gatsby'; | ||
|
||
import Title from '@/components/Title'; | ||
|
||
const Home: React.FC<PageProps> = () => ( | ||
<main> | ||
<Title>Hello TypeScript!</Title> | ||
<p>A TypeScript starter for Gatsby. Great for advanced users.</p> | ||
<p> | ||
Follow me on Twitter ( | ||
<a href="https://twitter.com/jpedroschmitz">@jpedroschmitz</a>) | ||
</p> | ||
</main> | ||
); | ||
|
||
export default Home; | ||
export default function Home() { | ||
return ( | ||
<main> | ||
<Title>Hello TypeScript!</Title> | ||
<p>A TypeScript starter for Gatsby. Great for advanced users.</p> | ||
<p> | ||
Follow me on Twitter ( | ||
<a href="https://twitter.com/jpedroschmitz">@jpedroschmitz</a>) | ||
</p> | ||
</main> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c4e962d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: