pre merge

This commit is contained in:
Abin Toppo
2026-01-14 13:37:51 +05:30
parent efec7d480f
commit 4b0717ff6d
19 changed files with 13598 additions and 509 deletions
+2 -4
View File
@@ -24,6 +24,7 @@ const Splash: React.FC = () => {
const isFocused = useIsFocused();
const fadeAnim = useRef(new Animated.Value(0)).current;
const reduxToken = useSelector((state: any) => state.token?.token);
console.log("user Token",reduxToken)
const store = useStore();
const { mutateAsync: registrationStateMutate } = useRagistrationState();
const [isHydrated, setIsHydrated] = useState(false);
@@ -49,7 +50,6 @@ const Splash: React.FC = () => {
const routeByOrgType = (params: { otherId: any; orgType: any }) => {
const orgType = String(params.orgType);
console.log("hitting here ")
if (orgType === '4' || orgType === '5' || orgType === '6') {
navigation.replace('StageThree', params);
return;
@@ -66,8 +66,7 @@ const Splash: React.FC = () => {
const handleGetData = async () => {
try {
const res = await registrationStateMutate();
console.log('Registration status response:', res);
console.log("ragister",res)
if (res?.statusCode === 404 || res?.statusCode === 401) {
navigation.replace('Registration');
return;
@@ -96,7 +95,6 @@ const Splash: React.FC = () => {
}
return;
}
console.error('API error:', res);
showToast(res?.message || 'Something went wrong');
navigation.replace('Registration');