From 712dcb274a5b8007ff9cf50ac37e77e3ee75fa09 Mon Sep 17 00:00:00 2001 From: Md Faisal Raza Khan Date: Sat, 6 Apr 2024 03:01:56 +0530 Subject: [PATCH] refactor(core): :recycle: path for settings and profile path for settings and profile ref: #183 --- package/components/utils/CoreProfilePopOver.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/package/components/utils/CoreProfilePopOver.js b/package/components/utils/CoreProfilePopOver.js index fd7d2c17..b389169a 100644 --- a/package/components/utils/CoreProfilePopOver.js +++ b/package/components/utils/CoreProfilePopOver.js @@ -7,7 +7,6 @@ import { useSelector } from "react-redux"; import CoreApiVersion from "./CoreApiVersion"; import CoreAppVersion from "./CoreAppVersion"; -import { CoreRouteRegistryContext } from "../../config/contextHandler"; import CoreClasses from "../../styles/CoreClasses"; import CoreAvatar from "../dataDisplay/CoreAvatar"; import CoreDivider from "../dataDisplay/CoreDivider"; @@ -28,7 +27,6 @@ export default function CoreProfilePopOver(props) { const navigate = nativeUseNavigate(); const auth = useSelector((state) => state?.auth); const profile = useSelector((state) => state?.profile); - const routeRegistry = useContext(CoreRouteRegistryContext); const { profileRegistration } = useSelector((state) => state?.api); @@ -47,13 +45,13 @@ export default function CoreProfilePopOver(props) { }, id : "viewProfile", label: "View Profile", - link : routeRegistry?.profile, + link : "/profile", }, { icon : { icon: "settings", type: __IconTypes.MATERIAL_OUTLINED_ICON }, id : "settings", label: "Settings", - link : routeRegistry?.settings, + link : "/settings", } /* -- , { type: MENU_SEPERATOR }, {