260324:1349 Refactor RFA #01
CI / CD Pipeline / build (push) Failing after 1m52s
CI / CD Pipeline / deploy (push) Has been skipped

This commit is contained in:
admin
2026-03-24 13:49:30 +07:00
parent a3e3206b06
commit 4cd0952482
29 changed files with 1700 additions and 306 deletions
+4 -3
View File
@@ -8,6 +8,7 @@ import { Button } from '@/components/ui/button';
import { Eye, Edit, FileText } from 'lucide-react';
import Link from 'next/link';
import { format } from 'date-fns';
import { toast } from 'sonner';
interface RFAListProps {
data: RFA[];
@@ -37,8 +38,8 @@ export function RFAList({ data }: RFAListProps) {
},
},
{
accessorKey: 'contract_name', // AccessorKey can be anything if we provide cell
header: 'Contract',
accessorKey: 'project_name',
header: 'Project',
cell: ({ row }) => {
return <span>{row.original.correspondence?.project?.projectName || '-'}</span>;
},
@@ -85,7 +86,7 @@ export function RFAList({ data }: RFAListProps) {
// But rfa.service.ts in use-rfa.ts uses 'sonner', so 'sonner' is likely available.
// I will try to use toast from 'sonner' if I import it, or just window.alert for safety.
// User said "หน้าต่างแจ้งเตือน" -> Alert window.
alert('ไม่พบไฟล์แนบ (No file attached)');
toast.error('ไม่พบไฟล์แนบ (No file attached)');
}
};