1
0
Fork 0

fix typekit component

This commit is contained in:
Matthias Kretschmann 2021-09-13 01:51:40 +02:00
parent 7b6c9dddb8
commit 507785caf9
Signed by: m
GPG Key ID: 606EEEF3C479A91F
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
import React from 'react'
import { Helmet } from 'react-helmet'
const TypekitScript = () => (
const getTypekitScript = () => (
<script>
{`
(function(d) {
@ -20,7 +20,7 @@ export default function Typekit(): JSX.Element {
return (
<Helmet>
<link rel="preconnect" href="https://use.typekit.net" />
<TypekitScript />
{getTypekitScript()}
</Helmet>
)
}