upd: project

Deskripsi:
- tambah data project

nb : upload file blm selesai

No Issuese
This commit is contained in:
amel
2025-05-14 14:19:48 +08:00
parent 9a86ccae56
commit 6b3de4d6b2
8 changed files with 218 additions and 47 deletions

View File

@@ -6,17 +6,20 @@ type Props = {
value: string
onPress?: () => void
round?: boolean
error?: boolean
errorText?: string
}
export default function ButtonSelect({ value, onPress, round }: Props) {
export default function ButtonSelect({ value, onPress, round, error, errorText }: Props) {
return (
<View style={[Styles.mv15]}>
<View style={[Styles.mv05]}>
<Pressable onPress={onPress}>
<View style={[Styles.inputRoundForm, Styles.inputRoundFormRight, round && Styles.round30, Styles.pv10]}>
<View style={[Styles.inputRoundForm, Styles.inputRoundFormRight, round && Styles.round30, Styles.pv10, error && { borderColor: "red" }]}>
<Feather name="arrow-right-circle" size={20} color="black" />
<Text style={[Styles.cBlack]}>{value}</Text>
</View>
</Pressable>
{error && (<Text style={[Styles.textInformation, Styles.mt05, Styles.cError]}>{errorText}</Text>)}
</View>
)
}