upd: redesign
This commit is contained in:
@@ -80,17 +80,17 @@ export function InputDate({ label, value, placeholder, onChange, info, disable,
|
||||
<View style={[Styles.mb10]}>
|
||||
{
|
||||
label != undefined && (
|
||||
<Text style={[Styles.mb05, error && Styles.cError]}>
|
||||
<Text style={[Styles.mb05, error && { color: colors.error }]}>
|
||||
{label}
|
||||
{required && (<Text style={Styles.cError}>*</Text>)}
|
||||
{required && (<Text style={{ color: colors.error }}>*</Text>)}
|
||||
</Text>
|
||||
)
|
||||
}
|
||||
<Pressable style={[Styles.inputRoundForm, disable && ColorsStatus.gray, error && { borderColor: "red" }, { backgroundColor: colors.card }]} onPress={() => setModal(true)} disabled={disable}>
|
||||
<Text style={!value && [Styles.cGray]}>{value ? value : placeholder}</Text>
|
||||
<Pressable style={[Styles.inputRoundForm, disable && ColorsStatus.gray, { borderColor: colors.icon + '20' }, error && { borderColor: colors.error }, { backgroundColor: colors.card }]} onPress={() => setModal(true)} disabled={disable}>
|
||||
<Text style={!value && [{ color: colors.dimmed }]}>{value ? value : placeholder}</Text>
|
||||
</Pressable>
|
||||
{error && (<Text style={[Styles.textInformation, Styles.cError, Styles.mt05]}>{errorText}</Text>)}
|
||||
{info != undefined && (<Text style={[Styles.textInformation, Styles.mt05, Styles.cGray]}>{info}</Text>)}
|
||||
{error && (<Text style={[Styles.textInformation, { color: colors.error }, Styles.mt05]}>{errorText}</Text>)}
|
||||
{info != undefined && (<Text style={[Styles.textInformation, Styles.mt05, { color: colors.icon }]}>{info}</Text>)}
|
||||
</View>
|
||||
{
|
||||
Platform.OS === 'ios' ? (
|
||||
|
||||
Reference in New Issue
Block a user