Przeglądaj źródła

adjust notifyComment to be simplier

ryuichi-e 6 lat temu
rodzic
commit
5a0b5b3d6d

+ 2 - 1
src/client/js/components/Admin/UserManagement.jsx

@@ -100,7 +100,8 @@ class UserManagement extends React.Component {
       </div>
       </div>
     );
     );
 
 
-    const notifyComment = (adminUsersContainer.state.notifyComment && <span className="text-warning">{ adminUsersContainer.state.notifyComment }</span>);
+    const notifyComment = adminUsersContainer.state.isNotifyCommentShow === true
+      ? <span className="text-warning">You should check at least one checkbox.</span> : null;
 
 
     const clearButton = (
     const clearButton = (
       adminUsersContainer.state.searchText.length > 0
       adminUsersContainer.state.searchText.length > 0