itizawa 6 лет назад
Родитель
Сommit
6e8d98d548
1 измененных файлов с 3 добавлено и 8 удалено
  1. 3 8
      src/client/js/components/Admin/Users/UserRemoveForm.jsx

+ 3 - 8
src/client/js/components/Admin/Users/UserRemoveForm.jsx

@@ -33,16 +33,11 @@ class UserRemoveForm extends React.Component {
   }
 
   render() {
-    const { t, appContainer } = this.props;
+    const { t } = this.props;
 
     return (
-      <a className="px-4">
-        <form onClick={this.onClickDeleteBtn}>
-          <input type="hidden" name="_csrf" value={appContainer.csrfToken} />
-          <span>
-            <i className="icon-fw icon-fire text-danger"></i> { t('Delete') }
-          </span>
-        </form>
+      <a className="px-4" onClick={this.onClickDeleteBtn}>
+        <i className="icon-fw icon-fire text-danger"></i> { t('Delete') }
       </a>
     );
   }