diff --git a/components/icon/demo/custom.md b/components/icon/demo/custom.md index 37e6fd84ad..3ecc341853 100644 --- a/components/icon/demo/custom.md +++ b/components/icon/demo/custom.md @@ -28,57 +28,9 @@ const AntDesignIcon = props => ( ); -const SvgDefinitions = () => ( - - - - - - - - -); - -const MaterialHomeIcon = props => ( - - {/* you should pass SVG paths */} - - -); - -const MaterialColorfulHomeIcon = props => ( - ( - - - - - - - - {React.Children.map( - svgProps.children, - child => React.cloneElement( - child, - child.type === 'path' ? { fill: 'url(#gradient)' } : {} - ) - )} - - )} - /> -); - ReactDOM.render(
- - - -
, mountNode @@ -89,10 +41,4 @@ ReactDOM.render( .custom-icons-list > .anticon { margin-right: 6px; } - -.custom-icons-list > .svg-common-definitions { - position: absolute; - width: 0; - height: 0; -} ```