refactor: NPED Context, sound update and start session
This commit is contained in:
@@ -3,14 +3,14 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||
import { useNavigate } from "react-router";
|
||||
|
||||
type NavigationArrowProps = {
|
||||
side: string;
|
||||
side: string | undefined;
|
||||
settingsPage?: boolean;
|
||||
};
|
||||
|
||||
const NavigationArrow = ({ side, settingsPage }: NavigationArrowProps) => {
|
||||
const navigate = useNavigate();
|
||||
|
||||
const navigationDest = (side: string) => {
|
||||
const navigationDest = (side: string | undefined) => {
|
||||
if (settingsPage) {
|
||||
navigate("/");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user