From df9ef4a53e2cbedbf14d7a915b8cbb47b8853923 Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 8 Feb 2024 10:59:05 +0800 Subject: [PATCH] fix: Unused variable, import, function or class (#685) --- docs/examples/debug.tsx | 2 +- docs/examples/single.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/examples/debug.tsx b/docs/examples/debug.tsx index 928f75da..45e01846 100644 --- a/docs/examples/debug.tsx +++ b/docs/examples/debug.tsx @@ -117,7 +117,7 @@ export default () => { onClick={onRootClick} defaultMotions={motionMap} inlineCollapsed={inlineCollapsed} - // openKeys={openKeys} + openKeys={openKeys} onOpenChange={newOpenKeys => setOpenKeys(newOpenKeys)} > diff --git a/docs/examples/single.tsx b/docs/examples/single.tsx index 6ac73cee..0cee87b3 100644 --- a/docs/examples/single.tsx +++ b/docs/examples/single.tsx @@ -1,7 +1,7 @@ /* eslint no-console:0 */ import React from 'react'; -import Menu, { SubMenu, Item as MenuItem, Divider } from 'rc-menu'; +import Menu from 'rc-menu'; import '../../assets/index.less'; const menu1List = [ @@ -50,7 +50,7 @@ export default () => (