From 7582caa436447959032fadab62b925d41c43b2c4 Mon Sep 17 00:00:00 2001 From: shyambhongle Date: Thu, 24 Oct 2024 14:32:32 +0530 Subject: [PATCH] minor --- src/components/sidebar/SidebarHeader.tsx | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/components/sidebar/SidebarHeader.tsx b/src/components/sidebar/SidebarHeader.tsx index 66e03d1b..2690f60a 100644 --- a/src/components/sidebar/SidebarHeader.tsx +++ b/src/components/sidebar/SidebarHeader.tsx @@ -13,7 +13,7 @@ import Popover from 'react-native-popover-view' const SidebarHeader = () => { - const { image, displayName, email, type } = useSelector( + const { image, displayName, email } = useSelector( (state: RootState) => state.userState, ) const [popupVisible, setPopupVisible] = useState(false) @@ -26,10 +26,6 @@ const SidebarHeader = () => { openWebView(`https://web.plant-for-the-planet.org/en/profile/edit`); } - const deleteHandler = () => { - openWebView(`https://web.plant-for-the-planet.org/en/profile/delete-account`); - } - const togglePopup = () => { setPopupVisible((prev) => !prev) @@ -41,7 +37,7 @@ const SidebarHeader = () => { isVisible={popupVisible} backgroundStyle={{ opacity: 0 }} popoverStyle={{ - + backgroundColor:Colors.LIGHT_PRIMARY, }} onRequestClose={togglePopup} from={( @@ -53,8 +49,6 @@ const SidebarHeader = () => { Edit - {type !== 'tpo' && <> - Delete} } @@ -105,7 +99,7 @@ const styles = StyleSheet.create({ alignItems: "center", borderWidth: 0.5, borderColor: Colors.PALE_WHITE, - backgroundColor: Colors.WHITE, + backgroundColor: Colors.LIGHT_PRIMARY, shadowColor: Colors.PALE_WHITE, shadowOffset: { width: 2, height: 2 }, shadowOpacity: 0.6,