From ece5ffc63faff0255c761859bb4df92fb16f0e8f Mon Sep 17 00:00:00 2001 From: dwindown Date: Sun, 21 Sep 2025 17:27:27 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20ESLint=20errors=20in=20Pos?= =?UTF-8?q?tmanTable.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove unused useMemo import - Remove unused selectedRowIndex state - Remove unused isComplexValue function - Fix CI deployment build failure --- src/components/PostmanTable.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/components/PostmanTable.js b/src/components/PostmanTable.js index a76cb9a8..5ce25661 100644 --- a/src/components/PostmanTable.js +++ b/src/components/PostmanTable.js @@ -1,9 +1,8 @@ -import React, { useState, useMemo } from 'react'; +import React, { useState } from 'react'; import { ChevronLeft, Braces, List, Type, Hash, ToggleLeft, Minus } from 'lucide-react'; const PostmanTable = ({ data, title = "JSON Data" }) => { const [currentPath, setCurrentPath] = useState([]); - const [selectedRowIndex, setSelectedRowIndex] = useState(null); // Get current data based on path const getCurrentData = () => { @@ -158,10 +157,6 @@ const PostmanTable = ({ data, title = "JSON Data" }) => { } }; - // Check if value is a complex object (not a primitive) - const isComplexValue = (value) => { - return value !== null && typeof value === 'object'; - }; // Render value with appropriate styling const renderValue = (value) => {