From c91264e4559eabd0c639e31cc541e4b82fda7fe4 Mon Sep 17 00:00:00 2001 From: Tiago Ribeiro Date: Tue, 22 Aug 2023 23:25:17 +0100 Subject: [PATCH] Removed the build problem --- src/components/Sidebar.tsx | 8 ++++---- src/utils/navigation.disabled.ts | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx index f80aaaf9..acb60652 100644 --- a/src/components/Sidebar.tsx +++ b/src/components/Sidebar.tsx @@ -8,13 +8,13 @@ import {FaAward} from "react-icons/fa"; import Link from "next/link"; import {useRouter} from "next/router"; import axios from "axios"; -import FocusLayer from '@/components/FocusLayer'; -import { preventNavigation } from "@/utils/navigation.disabled"; +import FocusLayer from "@/components/FocusLayer"; +import {preventNavigation} from "@/utils/navigation.disabled"; interface Props { path: string; navDisabled?: boolean; focusMode?: boolean; - onFocusLayerMouseEnter?: Function; + onFocusLayerMouseEnter?: () => void; } interface NavProps { @@ -46,7 +46,7 @@ export default function Sidebar({path, navDisabled = false, focusMode = false, o }); }; - const disableNavigation: Boolean = preventNavigation(navDisabled, focusMode); + const disableNavigation = preventNavigation(navDisabled, focusMode); return (
diff --git a/src/utils/navigation.disabled.ts b/src/utils/navigation.disabled.ts index 8a16a9c8..6b2ffb76 100644 --- a/src/utils/navigation.disabled.ts +++ b/src/utils/navigation.disabled.ts @@ -1,5 +1,5 @@ -export const preventNavigation = (navDisabled: Boolean, focusMode: Boolean): Boolean => { - if (navDisabled) return true; - if(focusMode) return true; - return false; -} \ No newline at end of file +export const preventNavigation = (navDisabled: boolean, focusMode: boolean): boolean => { + if (navDisabled) return true; + if (focusMode) return true; + return false; +};