+ {/* Input Title */}
+
+
+
(
+
+ )}
+ />
+ {errors.title?.message && (
+ {errors.title.message}
)}
- />
- {errors.title?.message && (
- {errors.title.message}
- )}
-
-
+
+
+
+
+
+
+
+ {Object.keys(unitSelection).map((key) => (
+
+
+ setUnitSelection({ ...unitSelection, [key]: value })
+ }
+ />
+
+
+ ))}
+
+
-
-
+
+ setMainType(value)}
+ // value={String(mainType)}
+ // onValueChange={(value) => setMainType(Number(value))}
+ className="flex flex-wrap gap-3"
+ >
+
+
+
+
+
-
- {Object.keys(unitSelection).map((key) => (
-
-
- setUnitSelection({ ...unitSelection, [key]: value })
- }
- />
-
+
+
+ setTaskType(String(value))}
+ className="flex flex-wrap gap-3"
+ >
+
+
+
+
+
+
+ {/* RadioGroup Assignment Category */}
+
+
+
setType(value)} // Mengubah nilai state ketika pilihan berubah
+ className="flex flex-wrap gap-3"
+ >
+
+
+
- ))}
-
-
-
-
-
- setMainType(Number(value))}
- className="flex flex-wrap gap-3"
- >
-
-
-
-
-
-
-
-
- setTaskType(String(value))}
- className="flex flex-wrap gap-3"
- >
-
-
-
-
-
-
- {/* RadioGroup Assignment Category */}
-
-
-
setType(value)} // Mengubah nilai state ketika pilihan berubah
- className="flex flex-wrap gap-3"
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object.keys(taskOutput).map((key) => (
-
-
- setTaskOutput({ ...taskOutput, [key]: value })
- }
- />
-
+
+
+
- ))}
+
+
+
+
+
-
-
-
- setBroadcastType(String(value))}
- className="flex flex-wrap gap-3"
- >
-
-
-
-
-
-
-
-
-
-
-
(
-
+
+
+
+ {Object.keys(taskOutput).map((key) => (
+
+
+ setTaskOutput({ ...taskOutput, [key]: value })
+ }
+ />
+
+
+ ))}
+
+
+
+
+
setBroadcastType(value)} // Mengatur nilai saat radio berubah
+ className="flex flex-wrap gap-3"
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
(
+
+ )}
+ />
+ {errors.naration?.message && (
+
+ {errors.naration.message}
+
)}
- />
- {errors.naration?.message && (
-
- {errors.naration.message}
-
- )}
+
-
- {/* Submit Button */}
-
-
-
-
+ {/* Submit Button */}
+
+
+
+
+ ) : (
+ ""
+ )}
);
diff --git a/service/curated-content/curated-content.ts b/service/curated-content/curated-content.ts
new file mode 100644
index 00000000..af1628f4
--- /dev/null
+++ b/service/curated-content/curated-content.ts
@@ -0,0 +1,6 @@
+import { getAPIInterceptor } from "@/config/api";
+
+export async function detailMedia(id: any) {
+ const url = `media?id=${id}`;
+ return getAPIInterceptor(url);
+}
diff --git a/service/planning/planning.ts b/service/planning/planning.ts
index 09419b25..c0010852 100644
--- a/service/planning/planning.ts
+++ b/service/planning/planning.ts
@@ -1,3 +1,4 @@
+import { getAPIInterceptor } from "@/config/api";
import { httpGetInterceptor } from "../http-config/http-interceptor-service";
export async function getPlanningSentPagination(
@@ -10,3 +11,8 @@ export async function getPlanningSentPagination(
`planning/pagination/sent?enablePage=1&size=${size}&page=${page}&typeId=${typeId}&title=${title}`
);
}
+
+export async function getPlanningById(id: any) {
+ const url = `planning?id=${id}`;
+ return getAPIInterceptor(url);
+}
diff --git a/service/task.ts b/service/task.ts
index c2afd1c6..4aca8bcd 100644
--- a/service/task.ts
+++ b/service/task.ts
@@ -38,7 +38,7 @@ export async function createTask(data: any) {
export async function getTask(id: any) {
const url = `/assignment?id=${id}`;
- return getAPIInterceptor({ url });
+ return getAPIInterceptor(url);
}
export async function forwardTask(data: any) {