From 17842893306410f878eed66af5e807870e61cc49 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Mon, 21 Feb 2022 19:34:01 +0100 Subject: refactor: replace script tags with next/script (#10) * refactor: replace script tags with next/script Since next.js v12.1.0 some warnings was displayed because I was using some script tags. * build(deps): bump next-themes to v0.1.1 --- src/pages/contact.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/pages/contact.tsx') diff --git a/src/pages/contact.tsx b/src/pages/contact.tsx index 176d130..9f8ec0f 100644 --- a/src/pages/contact.tsx +++ b/src/pages/contact.tsx @@ -10,6 +10,7 @@ import { getIntlInstance, loadTranslation } from '@utils/helpers/i18n'; import { GetStaticProps, GetStaticPropsContext } from 'next'; import Head from 'next/head'; import { useRouter } from 'next/router'; +import Script from 'next/script'; import { useIntl } from 'react-intl'; import { ContactPage as ContactPageSchema, Graph, WebPage } from 'schema-dts'; @@ -82,11 +83,12 @@ const ContactPage: NextPageWithLayout = () => { - +