Skip to content

Commit

Permalink
29/8, revisi dikit di button back screen profil dan screen notif
Browse files Browse the repository at this point in the history
  • Loading branch information
this-git-hanylf committed Aug 29, 2023
1 parent 9380ee3 commit 3a207a7
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
32 changes: 29 additions & 3 deletions apps/screens/Notification/index.js
Original file line number Diff line number Diff line change
@@ -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 <Text>inni notif</Text>;
const {t} = useTranslation();
return (
<SafeAreaView
edges={['right', 'top', 'left']}
style={[BaseStyle.safeAreaView, {backgroundColor: BaseColor.whiteColor}]}>
<Header
title={t('notification')}
renderLeft={() => {
return (
<Icon
// name="angle-left"
name="arrow-left"
size={18}
color={BaseColor.corn70}
enableRTL={true}
/>
);
}}
style={{height: 80}}
onPressLeft={() => {
navigation.goBack();
}}
/>
<Text>inni notif</Text>
</SafeAreaView>
);
};
export default Notification;
1 change: 1 addition & 0 deletions apps/screens/Profile/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3a207a7

Please sign in to comment.