diff --git a/components/result/index.jsx b/components/result/index.jsx index a15307288..77953a754 100644 --- a/components/result/index.jsx +++ b/components/result/index.jsx @@ -35,7 +35,7 @@ export const ResultProps = { extra: PropTypes.any, }; -const renderIcon = (h, prefixCls, { status, icon }) => { +const renderIcon = (prefixCls, { status, icon }) => { if (ExceptionStatus.includes(`${status}`)) { const SVGComponent = ExceptionMap[status]; return ( @@ -49,8 +49,7 @@ const renderIcon = (h, prefixCls, { status, icon }) => { return
; }; -const renderExtra = (h, prefixCls, extra) => - extra &&