mirror of
https://github.com/kremalicious/blog.git
synced 2024-11-29 15:42:11 +01:00
fix typekit component
This commit is contained in:
parent
7b6c9dddb8
commit
507785caf9
@ -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>
|
||||
)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user