upd: profile
Deskripsi: - ui profile - ui button right header - ui alert konfirmasi No Issues
This commit is contained in:
21
components/alertKonfirmasi.ts
Normal file
21
components/alertKonfirmasi.ts
Normal 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() }
|
||||
},
|
||||
]);
|
||||
}
|
||||
Reference in New Issue
Block a user