Skip to content

Commit

Permalink
fix: Unused variable, import, function or class (#685)
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 authored Feb 8, 2024
1 parent 35a956d commit df9ef4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/examples/debug.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export default () => {
onClick={onRootClick}
defaultMotions={motionMap}
inlineCollapsed={inlineCollapsed}
// openKeys={openKeys}
openKeys={openKeys}
onOpenChange={newOpenKeys => setOpenKeys(newOpenKeys)}
>
<Menu.Item key="mail">
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/single.tsx
Original file line number Diff line number Diff line change
@@ -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 = [
Expand Down Expand Up @@ -50,7 +50,7 @@ export default () => (
<Menu
selectable={false}
mode="inline"
defaultOpenKeys={"Resources"}
defaultOpenKeys={['Resources']}
style={{ width: "100%" }}
items={menu1Items(menu1List)}
/>
Expand Down

0 comments on commit df9ef4a

Please sign in to comment.