Notifikasi admin to user
Fix: - android/app/src/main/AndroidManifest.xml - app/(application)/(user)/job/(tabs)/_layout.tsx - app/(application)/(user)/job/[id]/index.tsx - app/(application)/(user)/notifications/index.tsx - app/(application)/(user)/profile/[id]/index.tsx - app/(application)/admin/job/[id]/[status]/index.tsx - app/(application)/admin/notification/index.tsx - app/+not-found.tsx - ios/HIPMIBadungConnect.xcodeproj/project.pbxproj - screens/Admin/Job/funUpdateStatus.ts - screens/Home/bottomFeatureSection.tsx ### No Issue
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
/* eslint-disable react-hooks/exhaustive-deps */
|
||||
import { BackButton } from "@/components";
|
||||
import { IconHome, IconStatus } from "@/components/_Icon";
|
||||
import { TabsStyles } from "@/styles/tabs-styles";
|
||||
import { Ionicons } from "@expo/vector-icons";
|
||||
import {
|
||||
Stack,
|
||||
router,
|
||||
Tabs,
|
||||
useLocalSearchParams,
|
||||
router,
|
||||
useNavigation,
|
||||
useNavigation
|
||||
} from "expo-router";
|
||||
import { useLayoutEffect } from "react";
|
||||
|
||||
@@ -31,7 +31,7 @@ export default function JobTabsLayout() {
|
||||
if (from) {
|
||||
router.replace(`/${from}` as any);
|
||||
} else {
|
||||
router.back();
|
||||
router.navigate("/home");
|
||||
}
|
||||
}
|
||||
}}
|
||||
|
||||
@@ -25,6 +25,8 @@ export default function JobDetail() {
|
||||
setIsLoading(true);
|
||||
const response = await apiJobGetOne({ id: id as string });
|
||||
|
||||
console.log("DATA", JSON.stringify(response.data, null,2));
|
||||
|
||||
setData(response.data);
|
||||
} catch (error) {
|
||||
console.log("[ERROR]", error);
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
/* eslint-disable react-hooks/exhaustive-deps */
|
||||
import {
|
||||
BaseBox,
|
||||
NewWrapper,
|
||||
@@ -32,10 +33,18 @@ const fixPath = ({
|
||||
deepLink: string;
|
||||
categoryApp: string;
|
||||
}) => {
|
||||
const fixPath =
|
||||
deepLink + "&from=notifications&category=" + _.lowerCase(categoryApp);
|
||||
if (categoryApp === "OTHER") {
|
||||
return deepLink;
|
||||
}
|
||||
|
||||
return fixPath;
|
||||
const separator = deepLink.includes("?") ? "&" : "?";
|
||||
|
||||
const fixedPath =
|
||||
`${deepLink}${separator}from=notifications&category=${_.lowerCase(categoryApp)}`;
|
||||
|
||||
console.log("Fix Path", fixedPath);
|
||||
|
||||
return fixedPath;
|
||||
};
|
||||
|
||||
const BoxNotification = ({
|
||||
@@ -114,7 +123,6 @@ export default function Notifications() {
|
||||
category: activeCategory as any,
|
||||
});
|
||||
|
||||
console.log("Response Notification", JSON.stringify(response, null, 2));
|
||||
if (response.success) {
|
||||
setListData(response.data);
|
||||
} else {
|
||||
|
||||
@@ -139,7 +139,9 @@ const ButtonnDot = ({
|
||||
isUserCheck: boolean;
|
||||
logout: () => Promise<void>;
|
||||
}) => {
|
||||
const isId = id === undefined || id === null;
|
||||
console.log("[ID] >>", id);
|
||||
|
||||
const isId = id === undefined || id === "undefined";
|
||||
|
||||
if (isId) {
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user