Removed the build problem
This commit is contained in:
@@ -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 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">
|
||||
|
||||
@@ -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;
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user