mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 03:29:39 +08:00
fix: status types
This commit is contained in:
parent
d0f95299cd
commit
35aaf6b9e9
@ -46,7 +46,7 @@ const ExceptionStatus = Object.keys(ExceptionMap);
|
||||
const renderIcon = (prefixCls: string, { status, icon }: ResultProps) => {
|
||||
const className = classnames(`${prefixCls}-icon`);
|
||||
|
||||
if (ExceptionStatus.includes(status)) {
|
||||
if (ExceptionStatus.includes(status as ResultStatusType)) {
|
||||
const SVGComponent = ExceptionMap[status as ExceptionStatusType];
|
||||
return (
|
||||
<div className={`${className} ${prefixCls}-image`}>
|
||||
|
Loading…
Reference in New Issue
Block a user