From f4010d89182098756c871cb638e00e167cf58002 Mon Sep 17 00:00:00 2001 From: Ryan Slobojan Date: Sun, 26 Sep 2021 19:18:02 -0400 Subject: [PATCH] If you don't import things and define all your constants, you get build errors. Who knew. :| --- components/Page.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/Page.tsx b/components/Page.tsx index 36689eb..1d9e6f2 100644 --- a/components/Page.tsx +++ b/components/Page.tsx @@ -1,3 +1,4 @@ +import React, {useEffect, useState} from "react"; import {useTranslation} from 'next-i18next'; import Head from 'next/head' @@ -11,6 +12,7 @@ interface PageProps { function Page(props: PageProps): JSX.Element { const { t } = useTranslation('common'); const [passCount, setPassCount] = useState(''); + const hitcountHost = 'https://stats.vaccine-ontario.ca'; useEffect(() => { if (passCount.length == 0) {