itizawa 6 лет назад
Родитель
Сommit
195d342f1d
1 измененных файлов с 22 добавлено и 15 удалено
  1. 22 15
      src/client/js/components/Admin/Notification/UserNotificationList.jsx

+ 22 - 15
src/client/js/components/Admin/Notification/UserNotificationList.jsx

@@ -11,23 +11,30 @@ import AdminNotificationContainer from '../../../services/AdminNotificationConta
 class UserNotificationList extends React.Component {
 
   render() {
-    const { t } = this.props;
-
+    const { t, adminNotificationContainer } = this.props;
     return (
-      <tr className="admin-notif-row">
-        <td>
-          pattern
-        </td>
-        <td>
-          channel
-        </td>
-        <td>
-          <form className="admin-remove-updatepost">
-            <button type="submit" className="btn btn-default">{t('Delete')}</button>
-          </form>
-        </td>
-      </tr>
+      <React.Fragment>
+        {adminNotificationContainer.state.userNotifications.map((notification) => {
+          return (
+            <tr className="admin-notif-row">
+              <td>
+                pattern
+              </td>
+              <td>
+                channel
+              </td>
+              <td>
+                <form className="admin-remove-updatepost">
+                  <button type="submit" className="btn btn-default">{t('Delete')}</button>
+                </form>
+              </td>
+            </tr>
+          );
+        })
+        }
+      </React.Fragment>
     );
+
   }
 
 }