From 6fec5a3c7600ce4c5967a9c5ea14ebbcaa8915c4 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Sat, 21 Apr 2018 20:41:08 +0200 Subject: [PATCH] change typekit again --- src/components/atoms/Head.js | 22 ++++++++++++---------- src/components/atoms/Typekit.js | 26 ++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 10 deletions(-) create mode 100644 src/components/atoms/Typekit.js diff --git a/src/components/atoms/Head.js b/src/components/atoms/Head.js index bef250c..0a33572 100644 --- a/src/components/atoms/Head.js +++ b/src/components/atoms/Head.js @@ -1,20 +1,22 @@ -import React from 'react' +import React, { Fragment } from 'react' import PropTypes from 'prop-types' import Helmet from 'react-helmet' +import Typekit from './Typekit' const Head = ({ meta }) => { const { title, tagline, description, typekit } = meta return ( - - - - - - + + + + + + + ) } diff --git a/src/components/atoms/Typekit.js b/src/components/atoms/Typekit.js new file mode 100644 index 0000000..35e4917 --- /dev/null +++ b/src/components/atoms/Typekit.js @@ -0,0 +1,26 @@ +import React from 'react' +import PropTypes from 'prop-types' +import Helmet from 'react-helmet' + +const TypekitScript = ({ id }) => ( + +) + +const Typekit = props => {TypekitScript(props)} + +export default Typekit + +TypekitScript.propTypes = { + id: PropTypes.string.isRequired, +}