Skip to content

Commit

Permalink
fix: icon type definition for copy code is incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
imzbf committed Dec 8, 2024
1 parent 6de07c0 commit f450390
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/MdEditor/components/Icon/Icon.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {
Bold,
ChartArea,
CircleChevronDown,
Code,
Expand,
Eye,
Expand Down Expand Up @@ -71,8 +70,7 @@ export type IconName =
| 'formula'
| 'close'
| 'delete'
| 'upload'
| 'collapse-tips';
| 'upload';

const iconMaps: { [key in IconName]: Component } = {
bold: Bold,
Expand Down Expand Up @@ -108,8 +106,7 @@ const iconMaps: { [key in IconName]: Component } = {
formula: SquareSigma,
close: X,
delete: Trash2,
upload: Upload,
'collapse-tips': CircleChevronDown
upload: Upload
};

export default defineComponent({
Expand Down
1 change: 1 addition & 0 deletions packages/MdEditor/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -568,4 +568,5 @@ export type CustomIcon = {
};
} & {
copy?: string;
'collapse-tips'?: string;
};

0 comments on commit f450390

Please sign in to comment.