diff --git a/src/pages/profile/profile.tsx b/src/pages/profile/profile.tsx index 5a556c6..b246cc2 100644 --- a/src/pages/profile/profile.tsx +++ b/src/pages/profile/profile.tsx @@ -1,17 +1,25 @@ import React from "react"; import { Link } from "react-router-dom"; - -import { URLs } from "../../__data__/urls"; +import { getHistory } from '@brojs/cli' import { getNavigationsValue } from "@brojs/cli"; +import { URLs } from "../../__data__/urls"; + +const history = getHistory(); + export const ProfilePage = () => { + const handletoNav2Click = (event) => { + event.preventDefault() + history.push(getNavigationsValue('nav2.main')); + } + return (

profile page

go to about page
- edit profile + edit profile
);