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 Link from "next/link";
|
||||||
import {useRouter} from "next/router";
|
import {useRouter} from "next/router";
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
import FocusLayer from '@/components/FocusLayer';
|
import FocusLayer from "@/components/FocusLayer";
|
||||||
import {preventNavigation} from "@/utils/navigation.disabled";
|
import {preventNavigation} from "@/utils/navigation.disabled";
|
||||||
interface Props {
|
interface Props {
|
||||||
path: string;
|
path: string;
|
||||||
navDisabled?: boolean;
|
navDisabled?: boolean;
|
||||||
focusMode?: boolean;
|
focusMode?: boolean;
|
||||||
onFocusLayerMouseEnter?: Function;
|
onFocusLayerMouseEnter?: () => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface NavProps {
|
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 (
|
return (
|
||||||
<section className="h-full flex bg-transparent flex-col justify-between w-1/6 px-4 py-4 pb-8 relative">
|
<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 (navDisabled) return true;
|
||||||
if (focusMode) return true;
|
if (focusMode) return true;
|
||||||
return false;
|
return false;
|
||||||
}
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user