浏览代码

fix(base/icons): error regarding default props

factor2
Calin-Teodor 11 个月前
父节点
当前提交
e52c6e6b35
共有 1 个文件被更改,包括 1 次插入5 次删除
  1. 1
    5
      react/features/base/icons/components/Icon.tsx

+ 1
- 5
react/features/base/icons/components/Icon.tsx 查看文件

125
 export default function Icon(props: IProps) {
125
 export default function Icon(props: IProps) {
126
     const {
126
     const {
127
         alt,
127
         alt,
128
-        className,
128
+        className = '',
129
         color,
129
         color,
130
         id,
130
         id,
131
         containerId,
131
         containerId,
202
         </Container>
202
         </Container>
203
     );
203
     );
204
 }
204
 }
205
-
206
-Icon.defaultProps = {
207
-    className: ''
208
-};

正在加载...
取消
保存