From 92eda21e45d902663052575aaa4c4f80bfa2faea Mon Sep 17 00:00:00 2001 From: dujinkim Date: Mon, 4 Aug 2025 09:36:14 +0000 Subject: (대표님) 벤더 문서 변경사항, data-table 변경, sync 변경 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/data-table/data-table-sort-list.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'components/data-table/data-table-sort-list.tsx') diff --git a/components/data-table/data-table-sort-list.tsx b/components/data-table/data-table-sort-list.tsx index c752f2f4..21926f34 100644 --- a/components/data-table/data-table-sort-list.tsx +++ b/components/data-table/data-table-sort-list.tsx @@ -47,6 +47,8 @@ import { SortableDragHandle, SortableItem, } from "@/components/ui/sortable" +import { useTranslation } from '@/i18n/client' +import { useParams, usePathname } from "next/navigation"; interface DataTableSortListProps { table: Table @@ -63,6 +65,10 @@ export function DataTableSortList({ }: DataTableSortListProps) { renderCount++; + const params = useParams(); + const lng = params?.lng as string; + const { t } = useTranslation(lng); + const id = React.useId() const initialSorting = (table.initialState.sorting ?? @@ -186,7 +192,7 @@ export function DataTableSortList({