From a9818876e95cfa2d61d0f4bba15584ab8c46d433 Mon Sep 17 00:00:00 2001 From: afc163 Date: Sun, 6 Dec 2015 16:22:34 +0800 Subject: [PATCH] update icon stateless component --- components/icon/index.jsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/components/icon/index.jsx b/components/icon/index.jsx index 0e70bb3a69..6779d1b09c 100644 --- a/components/icon/index.jsx +++ b/components/icon/index.jsx @@ -1,9 +1,7 @@ import React from 'react'; -function Icon(props) { - let {type, className = '', ...other} = props; +export default props => { + let { type, className = '', ...other } = props; className += ` anticon anticon-${type}`; return ; -} - -export default Icon; +};