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>,
|
||||
},
|
||||
{
|
||||
accessorKey: "experience",
|
||||
accessorKey: "userRolePlacements",
|
||||
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",
|
||||
|
|
|
|||
|
|
@ -472,14 +472,14 @@ export default function AddExpertForm() {
|
|||
)}
|
||||
</div>
|
||||
))}
|
||||
<Button
|
||||
{/* <Button
|
||||
type="button"
|
||||
size="md"
|
||||
onClick={handleAddRow}
|
||||
disabled={placementRows.length >= 2} // optional: disable button if already 1 row added
|
||||
>
|
||||
Tambah
|
||||
</Button>
|
||||
</Button> */}
|
||||
</div>
|
||||
|
||||
<div className="flex flex-row justify-end gap-2 mt-4 pt-4">
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ const TaskTaPage = () => {
|
|||
{t("tabel")} {t("task-ta")}
|
||||
</div>
|
||||
<div className="flex-none">
|
||||
{roleId !== 12 && roleId !== 19 && (
|
||||
{roleId !== 12 && (
|
||||
<Link href={"/contributor/task-ta/create"}>
|
||||
<Button color="primary" className="text-white">
|
||||
<UploadIcon size={18} className="mr-2" />
|
||||
|
|
|
|||
|
|
@ -535,10 +535,10 @@ const LoginForm = () => {
|
|||
</div>
|
||||
|
||||
<Button
|
||||
type="submit"
|
||||
type="button"
|
||||
fullWidth
|
||||
// onClick={handleEmailValidation}
|
||||
// disabled={isPending}
|
||||
onClick={handleEmailValidation}
|
||||
disabled={isPending}
|
||||
>
|
||||
Selanjutnya
|
||||
</Button>
|
||||
|
|
|
|||
Loading…
Reference in New Issue