From d166359ad5d7802353f2693918633ffbfd7a8072 Mon Sep 17 00:00:00 2001 From: Jastria Rahmat Date: Sat, 21 Dec 2024 01:47:48 +0700 Subject: [PATCH] fix: input fix --- src/components/input/inputSection.tsx | 2 +- src/components/table/tableHead.tsx | 3 +-- tsconfig.json | 3 ++- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/input/inputSection.tsx b/src/components/input/inputSection.tsx index fbc042f..3ee0f20 100644 --- a/src/components/input/inputSection.tsx +++ b/src/components/input/inputSection.tsx @@ -21,7 +21,7 @@ export const InputSection: React.FC = () => { const updateContextDelay = 897; //milliseconds const setFilterDebounced = useCallback( debounce(filterContext.setFilter, updateContextDelay), - [] + [filterContext] ); const handleFilter = (filterName: keyof IDataFilter) => { diff --git a/src/components/table/tableHead.tsx b/src/components/table/tableHead.tsx index 586c6ab..eb4b6fa 100644 --- a/src/components/table/tableHead.tsx +++ b/src/components/table/tableHead.tsx @@ -1,6 +1,5 @@ import React from "react"; -import { useSort, SortDirection } from "components/context/SortContext"; -import { dir } from "console"; +import { useSort } from "components/context/SortContext"; interface Props { headerData: string[]; diff --git a/tsconfig.json b/tsconfig.json index 778ec5d..f19a29c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -16,7 +16,8 @@ "noEmit": true, "jsx": "react-jsx", "experimentalDecorators": true, - "baseUrl": "src" + "baseUrl": "src", + "sourceMap": true }, "include": ["src"], "exclude": ["node_modules"]