Skip to content

Commit

Permalink
🐛 Fix icon typo
Browse files Browse the repository at this point in the history
close #17448
  • Loading branch information
afc163 committed Jul 4, 2019
1 parent 859bba5 commit 426a586
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions components/icon/utils.ts
Expand Up @@ -62,6 +62,9 @@ export function alias(type: string) {
// https://github.com/ant-design/ant-design/issues/16810
case 'canlendar':
newType = 'calendar';
// https://github.com/ant-design/ant-design/issues/17448
case 'colum-height':
newType = 'column-height';
break;
default:
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -43,7 +43,7 @@
},
"dependencies": {
"@ant-design/create-react-context": "^0.2.4",
"@ant-design/icons": "~2.1.0",
"@ant-design/icons": "~2.1.1",
"@ant-design/icons-react": "~2.0.1",
"@types/react-slick": "^0.23.4",
"array-tree-filter": "^2.1.0",
Expand Down
7 changes: 4 additions & 3 deletions site/theme/template/IconDisplay/fields.ts
Expand Up @@ -6,7 +6,9 @@ Object.keys(manifest).forEach(theme => {
});

// Hide typo-name icons
allIcons = allIcons.filter((name: string) => !['interation', 'canlendar'].includes(name));
allIcons = allIcons.filter(
(name: string) => !['interation', 'canlendar', 'colum-height'].includes(name),
);

export const categories = {
all: [...new Set(allIcons)],
Expand Down Expand Up @@ -125,8 +127,6 @@ export const categories = {
'font-colors',
'font-size',
'line-height',
'colum-height',
'colum-width',
'dash',
'small-dash',
'sort-ascending',
Expand All @@ -136,6 +136,7 @@ export const categories = {
'unordered-list',
'radius-setting',
'column-width',
'column-height',
],
data: [
'area-chart',
Expand Down

0 comments on commit 426a586

Please sign in to comment.