From 13bc512bf26618d5c040fd9b19cc0afd7af7c55b Mon Sep 17 00:00:00 2001
From: joonhoekim <26rote@gmail.com>
Date: Mon, 18 Aug 2025 07:04:44 +0000
Subject: (고건) 리스크 관리 테이블 내 등급 정보 추가
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 lib/risk-management/table/risks-table.tsx | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

(limited to 'lib/risk-management/table/risks-table.tsx')

diff --git a/lib/risk-management/table/risks-table.tsx b/lib/risk-management/table/risks-table.tsx
index d6317c26..2bd328f2 100644
--- a/lib/risk-management/table/risks-table.tsx
+++ b/lib/risk-management/table/risks-table.tsx
@@ -16,7 +16,7 @@ import {
 } from '@/types/table';
 import { useDataTable } from '@/hooks/use-data-table';
 import { use, useCallback, useMemo, useState } from 'react';
-import { useRouter } from 'next/navigation';
+import { useParams, useRouter } from 'next/navigation';
 import { RISK_EVENT_TYPE_LIST, RISK_PROVIDER_LIST } from '@/config/risksConfig';
 
 // ----------------------------------------------------------------------------------------------------
@@ -33,12 +33,13 @@ interface RisksTableProps {
 /* TABLE COMPONENT */
 function RisksTable({ promises }: RisksTableProps) {
   const router = useRouter();
+  const params = useParams();
   const [rowAction, setRowAction] = useState<DataTableRowAction<RisksView> | null>(null);
   const [isMailDialogOpen, setIsMailDialogOpen] = useState(false);
   const [promiseData] = use(promises);
   const tableData = promiseData;
   const columns = useMemo(
-    () => getColumns({ setRowAction }),
+    () => getColumns({ setRowAction, router, paramsLanguage: params?.lng as string ?? 'ko' }),
     [setRowAction],
   );
 
@@ -127,6 +128,14 @@ function RisksTable({ promises }: RisksTableProps) {
     managerId: 0,
     managerName: '',
     adminComment: '',
+    prevRatingTotal: '',
+    curRatingTotal: '',
+    prevRatingCredit: '',
+    curRatingCredit: '',
+    prevRatingCashflow: '',
+    curRatingCashflow: '',
+    prevRatingWatch: '',
+    curRatingWatch: '',
     occuredAt: new Date(),
   };
 
-- 
cgit v1.2.3

