bugfix: tfjs icon 3 to 4 (#20944)

This commit is contained in:
lewis liu 2020-01-16 18:19:13 +08:00 committed by 偏右
parent 9b14aa6ad2
commit a46c0c3363

View File

@ -217,10 +217,10 @@ class PicSearcher extends Component<PicSearcherProps, PicSearcherState> {
<tbody>
{icons.map((icon: iconObject) => {
const { type } = icon;
const iconName = type
const iconName = `${type
.split('-')
.map(str => `${str[0].toUpperCase()}${str.slice(1)}`)
.join('');
.join('')}Outlined`;
return (
<tr key={iconName}>