Removed the build problem

This commit is contained in:
Tiago Ribeiro
2023-08-22 23:25:17 +01:00
parent 14a719b8b5
commit c91264e455
2 changed files with 9 additions and 9 deletions

View File

@@ -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 (
<section className="h-full flex bg-transparent flex-col justify-between w-1/6 px-4 py-4 pb-8 relative">

View File

@@ -1,5 +1,5 @@
export const preventNavigation = (navDisabled: Boolean, focusMode: Boolean): Boolean => {
export const preventNavigation = (navDisabled: boolean, focusMode: boolean): boolean => {
if (navDisabled) return true;
if(focusMode) return true;
if (focusMode) return true;
return false;
}
};