itizawa 6 lat temu
rodzic
commit
6e8d98d548

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

@@ -33,16 +33,11 @@ class UserRemoveForm extends React.Component {
   }
   }
 
 
   render() {
   render() {
-    const { t, appContainer } = this.props;
+    const { t } = this.props;
 
 
     return (
     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>
       </a>
     );
     );
   }
   }