From f5d5da02465006f7db4b34fa0d7c6c430d27505e Mon Sep 17 00:00:00 2001 From: leKimChiii Date: Sun, 16 Apr 2023 17:42:58 +0800 Subject: [PATCH] added logout button in drawer --- App.tsx | 1 + .../CustomDrawerContent.tsx | 20 +++++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/App.tsx b/App.tsx index 1cb5142..62b43f4 100644 --- a/App.tsx +++ b/App.tsx @@ -33,6 +33,7 @@ export default function App() { + diff --git a/src/Components/Drawer/DrawerScreenSettings/CustomDrawerContent/CustomDrawerContent.tsx b/src/Components/Drawer/DrawerScreenSettings/CustomDrawerContent/CustomDrawerContent.tsx index 201ddc4..3838dfd 100644 --- a/src/Components/Drawer/DrawerScreenSettings/CustomDrawerContent/CustomDrawerContent.tsx +++ b/src/Components/Drawer/DrawerScreenSettings/CustomDrawerContent/CustomDrawerContent.tsx @@ -13,6 +13,7 @@ import LoginIcon from "../../../Icons/LoginIcon/LoginIcon"; import SignupIcon from "../../../Icons/SignupIcon/SignupIcon"; import UserIcon from "../../../Icons/UserIcon/UserIcon"; import AppIcon from "../../../Icons/AppIcon/AppIcon"; +import LogoutIcon from "../../../Icons/LogoutIcon/LogoutIcon"; export default function CustomDrawerContent(props: {}) { const navigation = useNavigation(); @@ -30,6 +31,7 @@ export default function CustomDrawerContent(props: {}) { Clip Notes + Home + + Login + + + + { + navigation.navigate("Register"); + }} + > + + + Log Out + + + ); }