upd: profile

Deskripsi:
- ui profile
- ui button right header
- ui alert konfirmasi

No Issues
This commit is contained in:
amel
2025-02-27 12:02:57 +08:00
parent 3372d4df23
commit f7b8c08f20
5 changed files with 149 additions and 7 deletions

View File

@@ -0,0 +1,21 @@
import { Alert } from "react-native";
type Props = {
title: string,
desc: string
onPress: () => void
}
export default function AlertKonfirmasi({ title, desc, onPress }: Props) {
Alert.alert(title, desc, [
{
text: 'Tidak',
style: 'cancel',
},
{
text: 'Ya',
onPress: () => { onPress() }
},
]);
}

View File

@@ -0,0 +1,17 @@
import { Feather } from "@expo/vector-icons"
import { ButtonHeader } from "./buttonHeader"
type Props = {
onPress?: () => void
}
export default function ButtonMenuHeader({ onPress }: Props) {
return (
<>
<ButtonHeader
item={<Feather name="menu" size={20} color="white" />}
onPress={onPress}
/>
</>
)
}

View File

@@ -8,8 +8,8 @@ export function HeaderRightHome() {
return (
<View style={[Styles.rowSpaceBetween, { width: 140 }]}>
<ButtonHeader item={<Feather name="search" size={20} color="white" />} onPress={() => { router.push('/search') }} />
<ButtonHeader item={<Feather name="bell" size={20} color="white" />} onPress={() => { router.push('/') }} />
<ButtonHeader item={<Feather name="user" size={20} color="white" />} onPress={() => { router.push('/') }} />
<ButtonHeader item={<Feather name="bell" size={20} color="white" />} onPress={() => { router.push('/notification') }} />
<ButtonHeader item={<Feather name="user" size={20} color="white" />} onPress={() => { router.push('/profile') }} />
</View>
)
}