upd: proses login
nb: blm selesai
This commit is contained in:
@@ -1,14 +1,16 @@
|
||||
import { ColorsStatus } from "@/constants/ColorsStatus";
|
||||
import Styles from "@/constants/Styles";
|
||||
import { Text, TouchableOpacity } from "react-native";
|
||||
|
||||
type Props = {
|
||||
text: string;
|
||||
onPress: () => void;
|
||||
disabled?: boolean
|
||||
};
|
||||
|
||||
export function ButtonForm({ text, onPress }: Props) {
|
||||
export function ButtonForm({ text, onPress, disabled }: Props) {
|
||||
return (
|
||||
<TouchableOpacity style={[Styles.btnRound, { marginTop: 30 }]} onPress={onPress}>
|
||||
<TouchableOpacity style={[Styles.btnRound, { marginTop: 30,}, disabled && ColorsStatus.gray]} onPress={onPress} disabled={disabled}>
|
||||
<Text style={[Styles.textDefaultSemiBold, Styles.cWhite]}>{text}</Text>
|
||||
</TouchableOpacity>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user