itizawa 5 سال پیش
والد
کامیت
a71809c5c3
1فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 3 2
      src/client/js/components/Admin/Security/DeleteAllShareLinksModal.jsx

+ 3 - 2
src/client/js/components/Admin/Security/DeleteAllShareLinksModal.jsx

@@ -7,7 +7,7 @@ import {
   Button, Modal, ModalHeader, ModalBody, ModalFooter,
 } from 'reactstrap';
 
-const DeleteAllShareLinksModal = (props) => {
+const DeleteAllShareLinksModal = React.memo((props) => {
 
   function closeButtonHandler() {
     if (props.onClose == null) {
@@ -37,7 +37,8 @@ const DeleteAllShareLinksModal = (props) => {
       </ModalFooter>
     </Modal>
   );
-};
+
+});
 
 DeleteAllShareLinksModal.propTypes = {
   isOpen: PropTypes.bool.isRequired,