From beca8ed01fbf437f58153b03011a7a1d246f0453 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Mon, 13 Mar 2023 19:25:59 +0800 Subject: [PATCH] Show Profile link in menu Because I need this --- src/components/menu.jsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/components/menu.jsx b/src/components/menu.jsx index 92d67db5..bca5dcb5 100644 --- a/src/components/menu.jsx +++ b/src/components/menu.jsx @@ -3,6 +3,7 @@ import { useSnapshot } from 'valtio'; import { api } from '../utils/api'; import states from '../utils/states'; +import { getCurrentAccount } from '../utils/store-utils'; import Icon from './icon'; import MenuLink from './MenuLink'; @@ -10,6 +11,7 @@ import MenuLink from './MenuLink'; function NavMenu(props) { const snapStates = useSnapshot(states); const { instance, authenticated } = api(); + const currentAccount = getCurrentAccount(); // Home = Following // But when in multi-column mode, Home becomes columns of anything @@ -102,6 +104,11 @@ function NavMenu(props) { {authenticated && ( <> + {currentAccount?.info?.id && ( + + Profile + + )} { states.showAccounts = true;