mirror of
https://github.com/kremalicious/portfolio.git
synced 2025-02-14 21:10:41 +01:00
fix typekit component
This commit is contained in:
parent
85667902af
commit
e192f50bcc
@ -1,7 +1,7 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { Helmet } from 'react-helmet'
|
import { Helmet } from 'react-helmet'
|
||||||
|
|
||||||
const TypekitScript = () => (
|
const getTypekitScript = () => (
|
||||||
<script>
|
<script>
|
||||||
{`
|
{`
|
||||||
(function(d) {
|
(function(d) {
|
||||||
@ -20,7 +20,7 @@ export default function Typekit() {
|
|||||||
return (
|
return (
|
||||||
<Helmet>
|
<Helmet>
|
||||||
<link rel="preconnect" href="https://use.typekit.net" />
|
<link rel="preconnect" href="https://use.typekit.net" />
|
||||||
<TypekitScript />
|
{getTypekitScript()}
|
||||||
</Helmet>
|
</Helmet>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user