resolve type error
This commit is contained in:
@@ -14,7 +14,7 @@ import { useFocusEffect, useNavigation } from "@react-navigation/native";
|
|||||||
import { DASHBOARD_URL, PUT_USER_STATUS } from "../../utils/ApiUrls";
|
import { DASHBOARD_URL, PUT_USER_STATUS } from "../../utils/ApiUrls";
|
||||||
import colors from "../../components/colors";
|
import colors from "../../components/colors";
|
||||||
import LinearGradient from "react-native-linear-gradient";
|
import LinearGradient from "react-native-linear-gradient";
|
||||||
import { Ionicons } from "@react-native-vector-icons/ionicons";
|
import { Ionicons, IoniconsIconName } from "@react-native-vector-icons/ionicons";
|
||||||
import { apiCall } from "../../utils/ApiHelper";
|
import { apiCall } from "../../utils/ApiHelper";
|
||||||
|
|
||||||
export type ApiResponse = {
|
export type ApiResponse = {
|
||||||
@@ -88,7 +88,7 @@ const UserProfileStatus: React.FC<UserProfileStatusProps> = ({ profileImage }) =
|
|||||||
const scaleAnim = useRef(new Animated.Value(0.9)).current;
|
const scaleAnim = useRef(new Animated.Value(0.9)).current;
|
||||||
|
|
||||||
// Memoized icons list
|
// Memoized icons list
|
||||||
const icons = useMemo(
|
const icons: IoniconsIconName[] = useMemo(
|
||||||
() => ["person", "people", "person-add", "create", "card", "checkmark-done"],
|
() => ["person", "people", "person-add", "create", "card", "checkmark-done"],
|
||||||
[]
|
[]
|
||||||
);
|
);
|
||||||
@@ -115,6 +115,7 @@ const UserProfileStatus: React.FC<UserProfileStatusProps> = ({ profileImage }) =
|
|||||||
|
|
||||||
const json: ApiResponse = await response.json();
|
const json: ApiResponse = await response.json();
|
||||||
|
|
||||||
|
console.log("profile json : ", json)
|
||||||
if (json.status === "success") {
|
if (json.status === "success") {
|
||||||
setStatusData(json.data);
|
setStatusData(json.data);
|
||||||
if (!json.data.profileStatus) setShowModal(true);
|
if (!json.data.profileStatus) setShowModal(true);
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
export const BASE_URL = "http://192.168.1.18:9060/api/"
|
export const BASE_URL = "https://api.godemo.in/FundCollect/api/"
|
||||||
// export const BASE_URL = "http://192.168.1.5:9060/api/"
|
// export const BASE_URL = "http://192.168.1.5:9060/api/"
|
||||||
export const LOGIN_URL = `${BASE_URL}user/generate/otp?mobiles=`
|
export const LOGIN_URL = `${BASE_URL}user/generate/otp?mobiles=`
|
||||||
export const VARIFY_OTP_URL = `${BASE_URL}user/otp/verify`
|
export const VARIFY_OTP_URL = `${BASE_URL}user/otp/verify`
|
||||||
|
|||||||
Reference in New Issue
Block a user