upd: login
Deskripsi: - tinggi view - toast error kode verification No Issues
This commit is contained in:
@@ -44,7 +44,7 @@ export default function ViewLogin({ onValidate }: Props) {
|
|||||||
return (
|
return (
|
||||||
<SafeAreaView>
|
<SafeAreaView>
|
||||||
<ToastCustom />
|
<ToastCustom />
|
||||||
<View style={Styles.p20}>
|
<View style={[Styles.p20, Styles.h100]}>
|
||||||
<View style={{ alignItems: "center", marginVertical: 50 }}>
|
<View style={{ alignItems: "center", marginVertical: 50 }}>
|
||||||
<Image
|
<Image
|
||||||
source={require("../../assets/images/splash-icon.png")}
|
source={require("../../assets/images/splash-icon.png")}
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ export default function ViewVerification({ phone, otp }: Props) {
|
|||||||
if (value === otpFix.toString()) {
|
if (value === otpFix.toString()) {
|
||||||
login()
|
login()
|
||||||
} else {
|
} else {
|
||||||
return Toast.show({ type: 'error', text1: 'Kode OTP tidak sesuai' });
|
return Toast.show({ type: 'small', text1: 'Kode OTP tidak sesuai' });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import axios from 'axios';
|
|||||||
const api = axios.create({
|
const api = axios.create({
|
||||||
// baseURL: 'http://10.0.2.2:3000/api',
|
// baseURL: 'http://10.0.2.2:3000/api',
|
||||||
// baseURL: 'https://stg-darmasaba.wibudev.com/api',
|
// baseURL: 'https://stg-darmasaba.wibudev.com/api',
|
||||||
baseURL: 'http://192.168.1.89:3000/api',
|
baseURL: 'http://192.168.1.110:3000/api',
|
||||||
});
|
});
|
||||||
|
|
||||||
export const apiCheckPhoneLogin = async (body: { phone: string }) => {
|
export const apiCheckPhoneLogin = async (body: { phone: string }) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user