diff --git a/src/components/Article/Article.js b/src/components/Article/Article.js index 34b937f..744bbc1 100644 --- a/src/components/Article/Article.js +++ b/src/components/Article/Article.js @@ -1,4 +1,5 @@ import React from 'react'; +import PropTypes from 'prop-types' import SEO from '../SEO/SEO' import Img from "gatsby-image" import slugify from '../../helpers/slugify' @@ -84,4 +85,18 @@ const Article = ({ data: { slug, title, image, description, category, tags, time ) } -export default Article \ No newline at end of file +export default Article + +Article.propTypes = { + data: PropTypes.shape({ + slug: PropTypes.string, + title: PropTypes.string, + image: PropTypes.object, + description: PropTypes.string, + category: PropTypes.string, + tags: PropTypes.array, + time: PropTypes.string, + date: PropTypes.string + }), + html: PropTypes.string +} \ No newline at end of file diff --git a/src/components/Articles/ArticleCard/ArticleCard.js b/src/components/Articles/ArticleCard/ArticleCard.js index e16e9dc..109341f 100644 --- a/src/components/Articles/ArticleCard/ArticleCard.js +++ b/src/components/Articles/ArticleCard/ArticleCard.js @@ -1,4 +1,5 @@ import React from 'react'; +import PropTypes from 'prop-types' import slugify from '../../../helpers/slugify' import Img from "gatsby-image" import { Link } from 'gatsby' @@ -32,4 +33,15 @@ const ArticleCard = ({ data: { slug, title, image, category, description, tags } ) } -export default ArticleCard \ No newline at end of file +export default ArticleCard + +ArticleCard.propTypes = { + data: PropTypes.shape({ + slug: PropTypes.string, + title: PropTypes.string, + image: PropTypes.object, + category: PropTypes.string, + description: PropTypes.string, + tags: PropTypes.array + }) +} \ No newline at end of file diff --git a/src/components/Articles/Articles.js b/src/components/Articles/Articles.js index 593c484..fc33370 100644 --- a/src/components/Articles/Articles.js +++ b/src/components/Articles/Articles.js @@ -1,4 +1,5 @@ import React from 'react'; +import PropTypes from 'prop-types' import ArticleCard from './ArticleCard/ArticleCard' import './Articles.scss' @@ -12,4 +13,10 @@ const Articles = ({ data: { edges } }) => { ) } -export default Articles \ No newline at end of file +export default Articles + +Articles.propTypes = { + data: PropTypes.shape({ + edges: PropTypes.array + }) +} \ No newline at end of file diff --git a/src/components/Footer/Footer.js b/src/components/Footer/Footer.js index 8b6947b..2416ccc 100644 --- a/src/components/Footer/Footer.js +++ b/src/components/Footer/Footer.js @@ -1,4 +1,5 @@ import React from 'react'; +import { Link } from 'gatsby' import PropTypes from 'prop-types' import './Footer.scss' @@ -19,25 +20,25 @@ const Footer = ({ title }) => {
Контакты
Социальные сети
- В нашем канале telegram вы не пропустите новые статьи, присоединяйтесь к другим разработчикам -
- Подписаться -+ В нашем канале telegram вы не пропустите новые статьи, присоединяйтесь к другим разработчикам +
+ Подписаться +