From e0b0040a0cb4d78da3071a486f68fe86b028149a Mon Sep 17 00:00:00 2001 From: Nouman Tahir Date: Thu, 16 Sep 2021 13:01:58 +0500 Subject: [PATCH] hiding action panel if not logged in --- .../organisms/quickProfileModal/children/actionPanel.tsx | 1 + .../quickProfileModal/children/quickProfileContent.tsx | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/organisms/quickProfileModal/children/actionPanel.tsx b/src/components/organisms/quickProfileModal/children/actionPanel.tsx index 44a6fbc00..f1b7124b4 100644 --- a/src/components/organisms/quickProfileModal/children/actionPanel.tsx +++ b/src/components/organisms/quickProfileModal/children/actionPanel.tsx @@ -12,6 +12,7 @@ interface ActionPanelProps { } export const ActionPanel = ({isFollowing, isFavourite, onFavouritePress, onFollowPress}: ActionPanelProps) => { + return ( state.account.currentAccount); const pinCode = useAppSelector((state)=>state.application.pin); + const isLoggedIn = useAppSelector((state)=>state.application.isLoggedIn); const [isLoading, setIsLoading] = useState(false); const [user, setUser] = useState(null); @@ -259,12 +260,15 @@ export const QuickProfileContent = ({ text='VIEW FULL PROFILE' onPress={_openFullProfile} /> - + /> + )} + ) };