Skip to content

Commit 09a57d6

Browse files
committed
fix: check-types fix
check-types fix
1 parent be448c9 commit 09a57d6

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

src/components/tree/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const TreeView: React.FunctionComponent<ITreeProps> = (props: ITreeProps) => {
6262
*/
6363
useEffect(() => {
6464
const { contextMenu, id, fileType } = activeData;
65-
const moContextMenu: IMenuItem[] =
65+
const moContextMenu: IMenuItem[] | undefined =
6666
contextMenu || renderContextMenu?.(fileType, activeData);
6767
let contextViewMenu;
6868
if (moContextMenu && moContextMenu.length > 0) {

src/extensions/explore/folderTree.tsx

+3-4
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ const FolderTree: React.FunctionComponent<ITreeProps> = (props: ITreeProps) => {
5151
const { data, ...restProps } = props;
5252
return (
5353
<Tree
54-
prefixCls="rc-tree"
5554
data={data}
5655
draggable
5756
onSelectFile={serviceProps.onSelectFile}
@@ -79,11 +78,11 @@ const FolderTree: React.FunctionComponent<ITreeProps> = (props: ITreeProps) => {
7978
index
8079
);
8180
}}
82-
onChange={(e) => {}}
81+
onChange={(e) => { }}
8382
/>
8483
) : (
85-
name
86-
);
84+
name
85+
);
8786
}}
8887
{...restProps}
8988
/>

src/extensions/search/searchTree.tsx

+2-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {
66
prefixClaName,
77
getBEMElement,
88
getBEMModifier,
9-
classNames,
109
} from 'mo/common/className';
1110
export interface SearchTreeProps extends ITreeProps {
1211
searchValue?: string;
@@ -32,7 +31,6 @@ const SearchTree: React.FunctionComponent<SearchTreeProps> = (
3231
const { data, searchValue, ...restProps } = props;
3332
return (
3433
<Tree
35-
prefixCls="rc-tree"
3634
data={data}
3735
renderTitle={(node, index) => {
3836
const { name } = node;
@@ -49,8 +47,8 @@ const SearchTree: React.FunctionComponent<SearchTreeProps> = (
4947
{afterStr}
5048
</span>
5149
) : (
52-
name
53-
);
50+
name
51+
);
5452
return title;
5553
}}
5654
onSelectFile={serviceProps.onSelectFile}

0 commit comments

Comments
 (0)