From 12c6a73878421b82a283ad70a1cba1d2211b0e00 Mon Sep 17 00:00:00 2001 From: afc163 Date: Mon, 19 Jun 2017 12:14:16 +0800 Subject: [PATCH] update jsx code style --- components/avatar/index.tsx | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/components/avatar/index.tsx b/components/avatar/index.tsx index 4320b0539c..d3489ced0a 100644 --- a/components/avatar/index.tsx +++ b/components/avatar/index.tsx @@ -95,20 +95,24 @@ export default class Avatar extends React.Component { display: 'inline-block', left: `calc(50% - ${Math.round(childrenNode.offsetWidth / 2)}px)`, }; - children = this.avatarChildren = span} - style={childrenStyle} - > - {children} - ; + children = ( + this.avatarChildren = span} + style={childrenStyle} + > + {children} + + ); } else { - children = this.avatarChildren = span} - > - {children} - ; + children = ( + this.avatarChildren = span} + > + {children} + + ); } } return (