From 3a207a76c80dfb2980d72d3478e6591228de26c7 Mon Sep 17 00:00:00 2001 From: haniyya ulfah Date: Tue, 29 Aug 2023 12:06:05 +0700 Subject: [PATCH] 29/8, revisi dikit di button back screen profil dan screen notif --- apps/screens/Notification/index.js | 32 +++++++++++++++++++++++++++--- apps/screens/Profile/index.js | 1 + 2 files changed, 30 insertions(+), 3 deletions(-) diff --git a/apps/screens/Notification/index.js b/apps/screens/Notification/index.js index 7fd147e..f4acd9f 100644 --- a/apps/screens/Notification/index.js +++ b/apps/screens/Notification/index.js @@ -1,6 +1,32 @@ -import {Text} from '@components'; - +import {Text, SafeAreaView, Header, Icon} from '@components'; +import {BaseStyle, BaseColor} from '../../config'; +import {useTranslation} from 'react-i18next'; const Notification = props => { - return inni notif; + const {t} = useTranslation(); + return ( + +
{ + return ( + + ); + }} + style={{height: 80}} + onPressLeft={() => { + navigation.goBack(); + }} + /> + inni notif + + ); }; export default Notification; diff --git a/apps/screens/Profile/index.js b/apps/screens/Profile/index.js index 92ef913..1585bbc 100644 --- a/apps/screens/Profile/index.js +++ b/apps/screens/Profile/index.js @@ -12,6 +12,7 @@ const Profile = props => { const [loading, setLoading] = useState(false); const {t} = useTranslation(); const dispatch = useDispatch(); + const {navigation} = props; const onLogOut = () => { setLoading(true);