This is an automated email from the ASF dual-hosted git repository.

justinpark pushed a commit to branch sqllab-custom-result-table
in repository https://gitbox.apache.org/repos/asf/superset.git

commit a43247d07194892136aa0a42e513edeaafe39c70
Author: justinpark <[email protected]>
AuthorDate: Tue Sep 26 12:40:16 2023 -0700

    lint fix
---
 superset-frontend/src/components/JsonModal/JsonModal.test.tsx | 6 +++++-
 superset-frontend/src/components/JsonModal/index.tsx          | 4 ++--
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/superset-frontend/src/components/JsonModal/JsonModal.test.tsx 
b/superset-frontend/src/components/JsonModal/JsonModal.test.tsx
index 2e7afd70d4..98e8db463d 100644
--- a/superset-frontend/src/components/JsonModal/JsonModal.test.tsx
+++ b/superset-frontend/src/components/JsonModal/JsonModal.test.tsx
@@ -28,7 +28,11 @@ test('renders JSON object in a tree view in a modal', () => {
   const jsonData = { a: 1 };
   const jsonValue = JSON.stringify(jsonData);
   const { getByText, getByTestId, queryByTestId } = render(
-    <JsonModal jsonObject={jsonData} jsonValue={jsonValue} />,
+    <JsonModal
+      jsonObject={jsonData}
+      jsonValue={jsonValue}
+      modalTitle="title"
+    />,
     {
       useRedux: true,
     },
diff --git a/superset-frontend/src/components/JsonModal/index.tsx 
b/superset-frontend/src/components/JsonModal/index.tsx
index 4da9fe226b..5b23c183ce 100644
--- a/superset-frontend/src/components/JsonModal/index.tsx
+++ b/superset-frontend/src/components/JsonModal/index.tsx
@@ -36,9 +36,9 @@
  * under the License.
  */
 import JSONbig from 'json-bigint';
-import React, { useCallback, useState } from 'react';
+import React, { useCallback } from 'react';
 import { JSONTree } from 'react-json-tree';
-import { t, useTheme } from '@superset-ui/core';
+import { useTheme } from '@superset-ui/core';
 import Button from '../Button';
 import CopyToClipboard from '../CopyToClipboard';
 import ModalTrigger from '../ModalTrigger';

Reply via email to