From c28721b1f4ed2b9c538fc6e22a6781a047ee628a Mon Sep 17 00:00:00 2001 From: Primakov Alexandr Alexandrovich Date: Thu, 24 Oct 2024 18:59:32 +0300 Subject: [PATCH] history push --- src/pages/profile/profile.tsx | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) 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
);