From 92eacdbe19a7d3c66845393c62894737ad254cc6 Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 8 Feb 2024 11:16:26 +0800 Subject: [PATCH] fix: code scanning alerts (#455) --- examples/debug.tsx | 19 ------------------- tests/Select.SearchInput.spec.js | 2 +- 2 files changed, 1 insertion(+), 20 deletions(-) diff --git a/examples/debug.tsx b/examples/debug.tsx index 9d04d30b..46e2eddb 100644 --- a/examples/debug.tsx +++ b/examples/debug.tsx @@ -1,33 +1,14 @@ -/* eslint-disable */ - import React from 'react'; import TreeSelect from '../src'; import '../assets/index.less'; -const { TreeNode, SHOW_ALL, SHOW_CHILD } = TreeSelect; -const SelectNode = TreeNode; - const treeData = [ { key: '0', value: '0', title: 'label0' }, { key: '1', value: '1', title: 'label1' }, ]; -const children = [ - , - , -]; - const createSelect = props => ; -// export default () => ( -// -// ); - export default () => createSelect({ maxTagCount: 1, diff --git a/tests/Select.SearchInput.spec.js b/tests/Select.SearchInput.spec.js index 2cb3e061..694d5521 100644 --- a/tests/Select.SearchInput.spec.js +++ b/tests/Select.SearchInput.spec.js @@ -1,5 +1,5 @@ /* eslint-disable no-undef */ -import React, { useEffect, useState } from 'react'; +import React, { useState } from 'react'; import { mount } from 'enzyme'; import TreeSelect, { TreeNode } from '../src';