fix input nomer
Deskripsi: - pada ios item left input terlalu keatas No Issues
This commit is contained in:
@@ -328,7 +328,7 @@ export default function EditProfile() {
|
|||||||
type="numeric"
|
type="numeric"
|
||||||
placeholder="8XX-XXX-XXX"
|
placeholder="8XX-XXX-XXX"
|
||||||
required
|
required
|
||||||
itemLeft={<Text>+62</Text>}
|
itemLeft={<Text style={[Platform.OS === 'ios' && Styles.mt02]}>+62</Text>}
|
||||||
value={data?.phone}
|
value={data?.phone}
|
||||||
error={error.phone}
|
error={error.phone}
|
||||||
errorText="Nomor Telepon tidak valid"
|
errorText="Nomor Telepon tidak valid"
|
||||||
|
|||||||
@@ -331,7 +331,7 @@ export default function CreateMember() {
|
|||||||
type="numeric"
|
type="numeric"
|
||||||
placeholder="8XX-XXX-XXX"
|
placeholder="8XX-XXX-XXX"
|
||||||
required
|
required
|
||||||
itemLeft={<Text>+62</Text>}
|
itemLeft={<Text style={[Platform.OS === 'ios' && Styles.mt02]}>+62</Text>}
|
||||||
error={error.phone}
|
error={error.phone}
|
||||||
errorText="Nomor Telepon tidak valid"
|
errorText="Nomor Telepon tidak valid"
|
||||||
onChange={val => {
|
onChange={val => {
|
||||||
|
|||||||
@@ -371,7 +371,7 @@ export default function EditMember() {
|
|||||||
type="numeric"
|
type="numeric"
|
||||||
placeholder="8XX-XXX-XXX"
|
placeholder="8XX-XXX-XXX"
|
||||||
required
|
required
|
||||||
itemLeft={<Text>+62</Text>}
|
itemLeft={<Text style={[Platform.OS === 'ios' && Styles.mt02]}>+62</Text>}
|
||||||
value={data?.phone}
|
value={data?.phone}
|
||||||
error={error.phone}
|
error={error.phone}
|
||||||
errorText="Nomor Telepon tidak valid"
|
errorText="Nomor Telepon tidak valid"
|
||||||
|
|||||||
@@ -39,10 +39,10 @@ export default function ViewLogin({ onValidate }: Props) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return Toast.show({ type: 'small', text1: response.message, position: 'top' })
|
return Toast.show({ type: 'small', text1: response.message, position: 'bottom' })
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
return Toast.show({ type: 'small', text1: `Terjadi kesalahan, coba lagi`, position: 'top' })
|
return Toast.show({ type: 'small', text1: `Terjadi kesalahan, coba lagi`, position: 'bottom' })
|
||||||
} finally {
|
} finally {
|
||||||
setLoadingLogin(false)
|
setLoadingLogin(false)
|
||||||
}
|
}
|
||||||
@@ -70,7 +70,7 @@ export default function ViewLogin({ onValidate }: Props) {
|
|||||||
type="numeric"
|
type="numeric"
|
||||||
placeholder="XXX-XXX-XXXX"
|
placeholder="XXX-XXX-XXXX"
|
||||||
round
|
round
|
||||||
itemLeft={<Text>+62</Text>}
|
itemLeft={<Text style={[Platform.OS === 'ios' && Styles.mt02]}>+62</Text>}
|
||||||
info="Kami akan mengirim kode verifikasi melalui WhatsApp, guna mengonfirmasikan nomor Anda." />
|
info="Kami akan mengirim kode verifikasi melalui WhatsApp, guna mengonfirmasikan nomor Anda." />
|
||||||
<ButtonForm
|
<ButtonForm
|
||||||
text="MASUK"
|
text="MASUK"
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ export default function ViewVerification({ phone, otp }: Props) {
|
|||||||
const encrypted = await encryptToken(valueUser);
|
const encrypted = await encryptToken(valueUser);
|
||||||
signIn(encrypted);
|
signIn(encrypted);
|
||||||
} else {
|
} else {
|
||||||
return Toast.show({ type: 'small', text1: 'Terjadi kesalahan', position: 'top' })
|
return Toast.show({ type: 'small', text1: 'Terjadi kesalahan', position: 'bottom' })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -36,7 +36,7 @@ export default function ViewVerification({ phone, otp }: Props) {
|
|||||||
if (value === otpFix.toString()) {
|
if (value === otpFix.toString()) {
|
||||||
login()
|
login()
|
||||||
} else {
|
} else {
|
||||||
return Toast.show({ type: 'small', text1: 'Kode OTP tidak sesuai', position: 'top' });
|
return Toast.show({ type: 'small', text1: 'Kode OTP tidak sesuai', position: 'bottom' });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user