upd: report divisi
Deskripsi: - ui report divisi No Issues
This commit is contained in:
@@ -14,9 +14,10 @@ type Props = {
|
||||
errorText?: string;
|
||||
required?: boolean;
|
||||
round?: boolean
|
||||
bg?: 'white' | 'transparent'
|
||||
};
|
||||
|
||||
export default function SelectForm({ label, value, placeholder, onPress, info, error, errorText, required, itemLeft, round }: Props) {
|
||||
export default function SelectForm({ label, value, placeholder, onPress, info, error, errorText, required, itemLeft, round, bg }: Props) {
|
||||
return (
|
||||
<View style={[Styles.mb10]}>
|
||||
{
|
||||
@@ -28,7 +29,7 @@ export default function SelectForm({ label, value, placeholder, onPress, info, e
|
||||
)
|
||||
}
|
||||
<Pressable onPressOut={onPress}>
|
||||
<View style={[Styles.inputRoundForm, Styles.inputRoundFormRight, error && { borderColor: "red" }, round && Styles.round30, Styles.pv10]}>
|
||||
<View style={[Styles.inputRoundForm, Styles.inputRoundFormRight, error && { borderColor: "red" }, round && Styles.round30, Styles.pv10, { backgroundColor: bg && bg == 'white' ? 'white' : 'transparent' }]}>
|
||||
<Feather name="chevron-right" size={20} color="grey" />
|
||||
{
|
||||
value ? (
|
||||
@@ -40,7 +41,7 @@ export default function SelectForm({ label, value, placeholder, onPress, info, e
|
||||
</View>
|
||||
</Pressable>
|
||||
{error && (<Text style={[Styles.textInformation, Styles.mt05, Styles.cError]}>{errorText}</Text>)}
|
||||
{info != undefined && (<Text style={[Styles.textInformation, Styles.mt05 , Styles.cGray]}>{info}</Text>)}
|
||||
{info != undefined && (<Text style={[Styles.textInformation, Styles.mt05, Styles.cGray]}>{info}</Text>)}
|
||||
</View>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user