feat:update tenaga ahli
This commit is contained in:
parent
f7b3c05a27
commit
ddad28f1ea
|
|
@ -30,9 +30,21 @@ const columns: ColumnDef<any>[] = [
|
||||||
cell: ({ row }) => <span>MABES</span>,
|
cell: ({ row }) => <span>MABES</span>,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
accessorKey: "experience",
|
accessorKey: "userRolePlacements",
|
||||||
header: "Posisi",
|
header: "Posisi",
|
||||||
cell: ({ row }) => <span>{row.getValue("experience")}</span>,
|
cell: ({ row }) => {
|
||||||
|
const placements = row.original.userRolePlacements || [];
|
||||||
|
const placement = placements.find(
|
||||||
|
(p: any) => p.roleId === 11 || p.roleId === 12
|
||||||
|
);
|
||||||
|
|
||||||
|
let posisi = "-";
|
||||||
|
if (placement) {
|
||||||
|
posisi = placement.roleId === 11 ? "Koorkurator" : "Kurator";
|
||||||
|
}
|
||||||
|
|
||||||
|
return <span>{posisi}</span>;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
accessorKey: "role.name",
|
accessorKey: "role.name",
|
||||||
|
|
|
||||||
|
|
@ -472,14 +472,14 @@ export default function AddExpertForm() {
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
<Button
|
{/* <Button
|
||||||
type="button"
|
type="button"
|
||||||
size="md"
|
size="md"
|
||||||
onClick={handleAddRow}
|
onClick={handleAddRow}
|
||||||
disabled={placementRows.length >= 2} // optional: disable button if already 1 row added
|
disabled={placementRows.length >= 2} // optional: disable button if already 1 row added
|
||||||
>
|
>
|
||||||
Tambah
|
Tambah
|
||||||
</Button>
|
</Button> */}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="flex flex-row justify-end gap-2 mt-4 pt-4">
|
<div className="flex flex-row justify-end gap-2 mt-4 pt-4">
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ const TaskTaPage = () => {
|
||||||
{t("tabel")} {t("task-ta")}
|
{t("tabel")} {t("task-ta")}
|
||||||
</div>
|
</div>
|
||||||
<div className="flex-none">
|
<div className="flex-none">
|
||||||
{roleId !== 12 && roleId !== 19 && (
|
{roleId !== 12 && (
|
||||||
<Link href={"/contributor/task-ta/create"}>
|
<Link href={"/contributor/task-ta/create"}>
|
||||||
<Button color="primary" className="text-white">
|
<Button color="primary" className="text-white">
|
||||||
<UploadIcon size={18} className="mr-2" />
|
<UploadIcon size={18} className="mr-2" />
|
||||||
|
|
|
||||||
|
|
@ -535,10 +535,10 @@ const LoginForm = () => {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
type="submit"
|
type="button"
|
||||||
fullWidth
|
fullWidth
|
||||||
// onClick={handleEmailValidation}
|
onClick={handleEmailValidation}
|
||||||
// disabled={isPending}
|
disabled={isPending}
|
||||||
>
|
>
|
||||||
Selanjutnya
|
Selanjutnya
|
||||||
</Button>
|
</Button>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue