diff --git a/resources/js/pages/admin/feedback/index.tsx b/resources/js/pages/admin/feedback/index.tsx index 15cad6e..5349f28 100644 --- a/resources/js/pages/admin/feedback/index.tsx +++ b/resources/js/pages/admin/feedback/index.tsx @@ -1,7 +1,3 @@ -import { Head, Link, router } from '@inertiajs/react'; -import { format } from 'date-fns'; -import { Info, Plus } from 'lucide-react'; -import { useState } from 'react'; import type { PaginationState } from '@/components/data-table'; import { DataTable } from '@/components/data-table'; import { DeleteConfirmDialog } from '@/components/delete-confirm-dialog'; @@ -31,6 +27,10 @@ import { } from '@/routes/admin/feedback'; import type { Feedback } from '@/types/feedback'; import { FeedbackStatusLabels, FeedbackTypeLabels } from '@/types/feedback'; +import { Head, Link, router } from '@inertiajs/react'; +import { format } from 'date-fns'; +import { Info, Plus } from 'lucide-react'; +import { useState } from 'react'; import { createFeedbackColumns, FeedbackStatusVariants } from './columns'; type FeedbackTypeOption = { value: string; label: string }; @@ -155,14 +155,16 @@ export default function FeedbackIndex({ feedback={viewing} /> - - - Ubah status Kritik dan Saran - - Klik badge Status pada tabel untuk mengubah status - Kritik dan Saran secara langsung. - - + {canUpdateStatus && ( + + + Ubah status Kritik dan Saran + + Klik badge Status pada tabel untuk mengubah status + Kritik dan Saran secara langsung. + + + )} - - - Ubah status mahasiswa - - Klik badge Status pada tabel untuk mengubah status - mahasiswa secara langsung. - - + {canUpdateAcademicStatus && ( + + + Ubah status mahasiswa + + Klik badge Status pada tabel untuk mengubah status + mahasiswa secara langsung. + + + )}