upd: ui home
Deskripsi: - update package - ui diskusi home - ui event home - ui bar chart home - ui pie chart home - ui divisi home No Issues
This commit is contained in:
22
components/buttonFiturMenu.tsx
Normal file
22
components/buttonFiturMenu.tsx
Normal file
@@ -0,0 +1,22 @@
|
||||
import Styles from "@/constants/Styles";
|
||||
import React from "react";
|
||||
import { Text, TouchableWithoutFeedback, View } from "react-native";
|
||||
|
||||
type Props = {
|
||||
onPress?: () => void;
|
||||
icon: React.ReactNode;
|
||||
text: string;
|
||||
};
|
||||
|
||||
export function ButtonFiturMenu({ onPress, icon, text }: Props) {
|
||||
return (
|
||||
<TouchableWithoutFeedback onPress={onPress}>
|
||||
<View style={{ alignItems: 'center' }}>
|
||||
<View style={[Styles.btnFiturMenu]}>
|
||||
{icon}
|
||||
</View>
|
||||
<Text style={[Styles.mt05]}>{text}</Text>
|
||||
</View>
|
||||
</TouchableWithoutFeedback>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user