mirror of
https://github.com/UofCBaja/BajaUofCWebsite.git
synced 2025-07-10 13:17:13 -06:00
Turned OpenPage and DropdownMenu to Lambda functions.
This commit is contained in:
@ -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;
|
Reference in New Issue
Block a user