瀏覽代碼

admin page

Marina Yakovenko 5 年之前
父節點
當前提交
6f7833502e

+ 1 - 1
src/components/eventForm/eventReduxForm.js

@@ -23,7 +23,7 @@ const EventReduxForm = ({
 			postNewEvent(value);
 		} else {
 			changeEvent(value);
-			setTimeout(() => history.push('/admin/my_events'), 3000);
+			setTimeout(() => history.push('/admin/my_events'), 3500);
 		}
 		reset();
 		showConfirmationMessage();

+ 3 - 2
src/conteiners/adminPhotogalaryPage/adminPhotogalaryPage.js

@@ -1,6 +1,7 @@
 import React, { Component } from "react";
 import { connect } from "react-redux";
-import * as actions from "../../actions/photogalaryActions";
+import { changeEditFlag } from "../../actions/adminMainPageActions";
+import {getEvents, getPhotogalary, postPhotogalary} from "../../actions/photogalaryActions";
 import AdminHeader from "../../components/adminHeader/adminHeader";
 import PhotogalaryForm from "../../components/adminPhotogalary/adminPhotogalaryReduxForm";
 import ConfirmationMessage from "../../components/confirmationMessage/confirmationMessage";
@@ -61,5 +62,5 @@ const mapStateToProps = state => ({
 
 export default connect(
     mapStateToProps,
-    actions
+    {changeEditFlag, getEvents, getPhotogalary, postPhotogalary}
 )(AdminAddPhotogalarytPage);