upd: tampilan

Deskripsi:
- tampilan form tambah banner
- button save header tambah banner
- tampilan form edit banner
- button save header edit banner
- padding form input with icon left or right

No Issues
This commit is contained in:
amel
2025-03-13 11:31:30 +08:00
parent 5bd65b4d3d
commit 4111392f17
8 changed files with 64 additions and 32 deletions

View File

@@ -32,13 +32,13 @@ export function InputForm({ label, placeholder, onChange, info, error, errorText
</Text>
)
}
<View style={[Styles.inputRoundForm, itemRight != undefined ? Styles.inputRoundFormRight : Styles.inputRoundFormLeft, round && Styles.round30, { backgroundColor: bg && bg == 'white' ? 'white' : 'transparent' }]}>
<View style={[Styles.inputRoundForm, itemRight != undefined ? Styles.inputRoundFormRight : Styles.inputRoundFormLeft, round && Styles.round30, { backgroundColor: bg && bg == 'white' ? 'white' : 'transparent' }, Styles.pv10]}>
{itemRight != undefined ? itemRight : itemLeft}
<TextInput
placeholder={placeholder}
keyboardType={type}
onChangeText={onChange}
style={{ width: width && lebar * width / 100}}
style={[Styles.mh05, { width: width ? lebar * width / 100: lebar*0.78 }]}
/>
</View>
{error && (<Text style={[Styles.textInformation, Styles.cError, Styles.mt05]}>{errorText}</Text>)}
@@ -66,7 +66,7 @@ export function InputForm({ label, placeholder, onChange, info, error, errorText
onChangeText={onChange}
/>
{error && (<Text style={[Styles.textInformation, Styles.cError, Styles.mt05]}>{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>
)
}