Skip to content

Commit

Permalink
refactor(core): ♻️ path for settings and profile
Browse files Browse the repository at this point in the history
path for settings and profile

ref: #183
  • Loading branch information
irkfaisal committed Apr 5, 2024
1 parent 68aeac3 commit 712dcb2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions package/components/utils/CoreProfilePopOver.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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);

Expand All @@ -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 },
{
Expand Down

0 comments on commit 712dcb2

Please sign in to comment.