fix admin job
- fix detail job
This commit is contained in:
@@ -1,17 +1,18 @@
|
||||
"use client";
|
||||
|
||||
import { SimpleGrid, Stack, Text } from "@mantine/core";
|
||||
import CustomSkeleton from "@/app_modules/components/CustomSkeleton";
|
||||
import { MODEL_JOB } from "@/app_modules/job/model/interface";
|
||||
import { clientLogger } from "@/util/clientLogger";
|
||||
import { SimpleGrid, Stack } from "@mantine/core";
|
||||
import { useShallowEffect } from "@mantine/hooks";
|
||||
import { useParams } from "next/navigation";
|
||||
import { useState } from "react";
|
||||
import AdminGlobal_ComponentBackButton from "../../_admin_global/back_button";
|
||||
import ComponentAdminGlobal_HeaderTamplate from "../../_admin_global/header_tamplate";
|
||||
import { useState } from "react";
|
||||
import { useShallowEffect } from "@mantine/hooks";
|
||||
import { clientLogger } from "@/util/clientLogger";
|
||||
import { apiGetOneJobById } from "../lib/api_fetch_admin_job";
|
||||
import CustomSkeleton from "@/app_modules/components/CustomSkeleton";
|
||||
import { AdminJob_DetailPublish } from "../_components/detail/publish";
|
||||
import { MODEL_JOB } from "@/app_modules/job/model/interface";
|
||||
import { AdminJob_DetailReject } from "../_components/detail/reject";
|
||||
import { AdminJob_DetailReview } from "../_components/detail/review";
|
||||
import { apiGetOneJobById } from "../lib/api_fetch_admin_job";
|
||||
|
||||
export function AdminJob_ViewDetailPublish() {
|
||||
const param = useParams<{ id: string }>();
|
||||
@@ -28,7 +29,6 @@ export function AdminJob_ViewDetailPublish() {
|
||||
});
|
||||
|
||||
if (response) {
|
||||
console.log(response.data);
|
||||
setData(response.data);
|
||||
}
|
||||
} catch (error) {
|
||||
@@ -50,6 +50,8 @@ export function AdminJob_ViewDetailPublish() {
|
||||
<AdminJob_DetailPublish data={data} />
|
||||
) : data.MasterStatus.name === "Review" ? (
|
||||
<AdminJob_DetailReview data={data} />
|
||||
) : data.MasterStatus.name === "Reject" ? (
|
||||
<AdminJob_DetailReject data={data} />
|
||||
) : (
|
||||
""
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user