From d035adcfe9f9edd6fbb03aed252beefdaa4aca4e Mon Sep 17 00:00:00 2001 From: Jack Merrill Date: Wed, 31 Mar 2021 00:32:53 -0500 Subject: [PATCH] fix(TypeError): Fix TypeErrors in Navbar and Index --- components/Navbar.tsx | 3 +-- pages/index.tsx | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/components/Navbar.tsx b/components/Navbar.tsx index baa775f..d01d4cf 100644 --- a/components/Navbar.tsx +++ b/components/Navbar.tsx @@ -1,6 +1,5 @@ import Link from "next/link"; -import { Dispatch, SetStateAction, useEffect, useState } from "react"; -import Logo from './Images/Logo'; +import { useEffect, useState } from "react"; const Navbar = ({ links }: { links: { diff --git a/pages/index.tsx b/pages/index.tsx index cb2cb80..1bac773 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -1,7 +1,7 @@ import Link from 'next/link' import Navbar from '../components/Navbar' -function GetTimeString(): string { +function GetTimeString() { const hours = new Date().getHours() if (hours < 12) {