If you don't import things and define all your constants, you get build errors. Who knew. :|

This commit is contained in:
Ryan Slobojan 2021-09-26 19:18:02 -04:00
parent 7fc971ab79
commit f4010d8918
1 changed files with 2 additions and 0 deletions

View File

@ -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<string>('');
const hitcountHost = 'https://stats.vaccine-ontario.ca';
useEffect(() => {
if (passCount.length == 0) {