Skip to content

Commit

Permalink
fix: code scanning alerts (#455)
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Feb 8, 2024
1 parent 76c1569 commit 92eacdb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 deletions.
19 changes: 0 additions & 19 deletions examples/debug.tsx
Original file line number Diff line number Diff line change
@@ -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 = [
<TreeNode key="0" value="0" title="label0" foo={0} />,
<TreeNode key="1" value="1" title="label1" foo={1} />,
];

const createSelect = props => <TreeSelect treeData={treeData} labelInValue {...props} />;

// export default () => (
// <TreeSelect
// defaultValue={['not-exist']}
// treeCheckable
// style={{ width: 300 }}
// onDeselect={console.error}
// />
// );

export default () =>
createSelect({
maxTagCount: 1,
Expand Down
2 changes: 1 addition & 1 deletion tests/Select.SearchInput.spec.js
Original file line number Diff line number Diff line change
@@ -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';

Expand Down

0 comments on commit 92eacdb

Please sign in to comment.