takahiros 6 лет назад
Родитель
Сommit
e1e129e61c
1 измененных файлов с 3 добавлено и 5 удалено
  1. 3 5
      src/client/js/components/User/UserPictureList.jsx

+ 3 - 5
src/client/js/components/User/UserPictureList.jsx

@@ -26,12 +26,10 @@ class UserPictureList extends React.Component {
 
 
   render() {
   render() {
     const users = this.state.users.map((user) => {
     const users = this.state.users.map((user) => {
-      const userTarget = <span id={`span-${user._id}`}><UserPicture user={user} size="xs" ref={`userPicture-${user._id}`} /></span>;
-
       return (
       return (
-        <span>
+        <>
           {/* workaround from https://github.com/react-bootstrap/react-bootstrap/issues/2208#issuecomment-301737531 */}
           {/* workaround from https://github.com/react-bootstrap/react-bootstrap/issues/2208#issuecomment-301737531 */}
-          {userTarget}
+          <span id={`span-${user._id}`}><UserPicture user={user} size="xs" ref={`userPicture-${user._id}`} /></span>
           <UncontrolledTooltip
           <UncontrolledTooltip
             id={`tooltip-${user._id}`}
             id={`tooltip-${user._id}`}
             placement="bottom"
             placement="bottom"
@@ -39,7 +37,7 @@ class UserPictureList extends React.Component {
           >
           >
             @{user.username}<br />{user.name}
             @{user.username}<br />{user.name}
           </UncontrolledTooltip>
           </UncontrolledTooltip>
-        </span>
+        </>
       );
       );
     });
     });