From 62dbc54eb2879bf4b54ae64c408f452502472655 Mon Sep 17 00:00:00 2001 From: afc163 Date: Wed, 27 Jan 2016 01:51:54 +0800 Subject: [PATCH] improve tag code style --- components/tag/index.jsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/components/tag/index.jsx b/components/tag/index.jsx index d47ebc3a03..3e9f3ab8ff 100644 --- a/components/tag/index.jsx +++ b/components/tag/index.jsx @@ -43,15 +43,17 @@ class AntTag extends React.Component { [prefixCls + '-' + color]: !!color, [prefixCls + '-close']: this.state.closing, }); - return this.state.closed ? null : ( + return ( -
- - {close} -
+ {this.state.closed ? null : ( +
+ + {close} +
+ )}
); } -- GitLab