Skip to content

Commit

Permalink
remove prop-types
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthysDev committed Sep 24, 2021
1 parent dadd337 commit 88d45f8
Show file tree
Hide file tree
Showing 8 changed files with 378 additions and 714 deletions.
15 changes: 0 additions & 15 deletions src/components/head.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from 'react'
import PropTypes from 'prop-types'
import { Helmet } from 'react-helmet'
import { StaticQuery, graphql } from 'gatsby'
import { Location } from '@reach/router'
Expand Down Expand Up @@ -173,20 +172,6 @@ const Head = ({
</Helmet>
)

Head.propTypes = {
siteTitle: PropTypes.string,
siteTitleShort: PropTypes.string,
siteDescription: PropTypes.string,
siteUrl: PropTypes.string,
themeColor: PropTypes.string,
social: PropTypes.objectOf(PropTypes.string),
imageUrl: PropTypes.string,
canonical: PropTypes.string,
pageTitle: PropTypes.string,
pageTitleFull: PropTypes.string,
location: PropTypes.object.isRequired,
}

const HeadWithQuery = props => (
<StaticQuery
query={graphql`
Expand Down
6 changes: 0 additions & 6 deletions src/components/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from 'react'
import PropTypes from 'prop-types'
import { StaticQuery, graphql } from 'gatsby'
import Head from './head'
import Sidebar from './Sidebar'
Expand All @@ -26,11 +25,6 @@ const Layout = ({ children }) => (
</>
)

Layout.propTypes = {
children: PropTypes.node.isRequired,
data: PropTypes.object.isRequired,
}

const LayoutWithQuery = props => (
<StaticQuery
query={graphql`
Expand Down
5 changes: 0 additions & 5 deletions src/pages/all.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React from 'react'
import { graphql } from 'gatsby'

import Layout from '../components/layout'
import PropTypes from 'prop-types'
import QuoteItem from '../components/quoteItem'
import { QuoteLink } from '../components/quoteLink'

Expand Down Expand Up @@ -45,8 +44,4 @@ const AllPage = ({ data }) => (
</Layout>
)

AllPage.propTypes = {
data: PropTypes.object.isRequired,
}

export default AllPage
5 changes: 0 additions & 5 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from 'react'
import PropTypes from 'prop-types'
import { graphql } from 'gatsby'
import Layout from '../components/layout'
import Share from '../components/share'
Expand Down Expand Up @@ -48,8 +47,4 @@ const IndexPage = ({ data }) => {
)
}

IndexPage.propTypes = {
data: PropTypes.object.isRequired,
}

export default IndexPage
5 changes: 0 additions & 5 deletions src/pages/random.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from 'react'
import PropTypes from 'prop-types'
import { graphql } from 'gatsby'
import Layout from '../components/layout'
import Share from '../components/share'
Expand Down Expand Up @@ -60,8 +59,4 @@ const RandomPage = ({ data }) => {
)
}

RandomPage.propTypes = {
data: PropTypes.object.isRequired,
}

export default RandomPage
8 changes: 0 additions & 8 deletions src/pages/single.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from 'react'
import PropTypes from 'prop-types'
import Layout from '../components/layout'
import Share from '../components/share'
import QuoteItem from '../components/quoteItem'
Expand All @@ -20,11 +19,4 @@ function singleQuote(props) {
)
}

singleQuote.propTypes = {
pageContext: PropTypes.object.isRequired,
title: PropTypes.string.isRequired,
twitterName: PropTypes.string,
location: PropTypes.object.isRequired,
}

export default singleQuote
5 changes: 0 additions & 5 deletions src/store/provider.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { Provider } from './createContext'

// The provider, which holds the page-wide store and its actions.
Expand All @@ -10,8 +9,4 @@ function AppProvider() {
return <Provider value={state}>{props.children}</Provider>
}

AppProvider.propTypes = {
children: PropTypes.node.isRequired,
}

export default AppProvider

0 comments on commit 88d45f8

Please sign in to comment.