From 03ad8bbd4656aa1b31d7a7ab82ac38c76b315518 Mon Sep 17 00:00:00 2001 From: "Krasnikov.pro" Date: Sat, 23 Jul 2022 00:27:01 +0300 Subject: [PATCH] modified: components/Head.tsx new file: components/Yandex.tsx modified: package-lock.json modified: package.json modified: pages/_app.tsx modified: pages/_document.tsx modified: yarn.lock --- components/Head.tsx | 2 +- components/Yandex.tsx | 23 +++++++++++++++++++++++ package-lock.json | 13 +++++++++++++ package.json | 1 + pages/_app.tsx | 2 +- pages/_document.tsx | 18 ++++++++++++++++-- yarn.lock | 5 +++++ 7 files changed, 60 insertions(+), 4 deletions(-) create mode 100644 components/Yandex.tsx diff --git a/components/Head.tsx b/components/Head.tsx index 8b69669..288da04 100644 --- a/components/Head.tsx +++ b/components/Head.tsx @@ -7,7 +7,7 @@ export type WithYandexMetrikaProps = { children: React.ReactNode; } -export const WEBSITE_HOST_URL = 'https://robotop.krasnikov.pro/'; +export const WEBSITE_HOST_URL = 'https://robotop.krasnikov.pro'; const Head = ({ customMeta }: { customMeta?: MetaProps }): JSX.Element => { const router = useRouter(); diff --git a/components/Yandex.tsx b/components/Yandex.tsx new file mode 100644 index 0000000..9aaa5a8 --- /dev/null +++ b/components/Yandex.tsx @@ -0,0 +1,23 @@ +import React from 'react'; +import Script from 'next/script' + +export const YandexMetrics = () => { + return( +
+