Skip to content

Commit

Permalink
🐛 fix: remove lucide icon
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Jun 13, 2023
1 parent fee244c commit b946ce3
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"build": "father build",
"build:watch": "father dev",
"changelog": "conventional-changelog -n node_modules/conventional-changelog-gitmoji-config -i CHANGELOG.md -s -r 0",
"ci": "npm run lint && npm run ts-check",
"ci": "npm run lint && npm run ts-check && npm run doctor",
"deploy": "npm run docs:build && gh-pages -d ./docs-dist",
"dev": "dumi dev",
"docs:build": "dumi build",
Expand Down
21 changes: 19 additions & 2 deletions src/ContextMenu/MenuItem/icons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,33 @@ export const AltIcon = () => (
<svg
className="lucide lucide-chevron-up"
fill="none"
height={iconSize}
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
height={iconSize}
strokeWidth={strokeWidth}
viewBox="0 0 24 24"
width={iconSize}
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
>
<path d="M3 3h6l6 18h6"></path>
<path d="M14 3h7"></path>
</svg>
);

export const ChevronRightIcon = ({ className }) => (
<svg
xmlns="http://www.w3.org/2000/svg"
height={iconSize}
width={iconSize}
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeWidth={strokeWidth}
strokeLinecap="round"
strokeLinejoin="round"
className={`lucide lucide-chevron-right ${className}`}
>
<polyline points="9 18 15 12 9 6" />
</svg>
);
3 changes: 1 addition & 2 deletions src/ContextMenu/MenuItem/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { ChevronRightIcon } from 'lucide-react';
import { forwardRef, ReactNode } from 'react';
import { Flexbox } from 'react-layout-kit';

import { AltIcon, CommandIcon, ControlIcon, ShiftIcon } from './icons';
import { AltIcon, ChevronRightIcon, CommandIcon, ControlIcon, ShiftIcon } from './icons';
import { useStyles } from './style';

const KEYBOARD_ICON_MAP: Record<string, any> = {
Expand Down

0 comments on commit b946ce3

Please sign in to comment.