From fabb799f939ffc8c951b9d927565b3015a55d0e4 Mon Sep 17 00:00:00 2001 From: Aleksander Helgaker Date: Sun, 25 Aug 2019 13:20:50 +0200 Subject: [PATCH] Fix linting errors. --- src/components/Layout/Layout.js | 3 ++- src/components/Layout/Layout.test.js | 1 + src/types/index.js | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/Layout/Layout.js b/src/components/Layout/Layout.js index ead80aa..b61e886 100644 --- a/src/components/Layout/Layout.js +++ b/src/components/Layout/Layout.js @@ -9,7 +9,8 @@ import styles from './Layout.module.scss'; type Props = { children: ReactNode, title: string, - description?: string + description?: string, + socialImage? :string }; const Layout = ({ children, title, description, socialImage }: Props) => { diff --git a/src/components/Layout/Layout.test.js b/src/components/Layout/Layout.test.js index 96ec84d..71d53eb 100644 --- a/src/components/Layout/Layout.test.js +++ b/src/components/Layout/Layout.test.js @@ -4,6 +4,7 @@ import renderer from 'react-test-renderer'; import { useStaticQuery, StaticQuery } from 'gatsby'; import siteMetadata from '../../../jest/__fixtures__/site-metadata'; import Layout from './Layout'; +import type { RenderCallback } from '../../types'; describe('Layout', () => { const props = { diff --git a/src/types/index.js b/src/types/index.js index c8835a1..d5a2836 100644 --- a/src/types/index.js +++ b/src/types/index.js @@ -34,6 +34,7 @@ export type Node = { category?: string, tags?: string[], title: string, + socialImage?: string }, html: string, id: string