Turned OpenPage and DropdownMenu to Lambda functions.

This commit is contained in:
Sarim-Sheikh-2003
2023-11-04 11:13:44 -06:00
parent ecd1b97c28
commit 0ebb1028bc
6 changed files with 4030 additions and 30 deletions

View File

@ -1,8 +1,10 @@
import { useNavigate } from "react-router-dom";
export default function OpenPage(arg) {
console.log(arg);
const OpenPage = (arg) => {
const navigate = useNavigate();
navigate(arg);
};
console.log(arg);
};
export default OpenPage;