Marina Yakovenko преди 5 години
родител
ревизия
6f7833502e
променени са 2 файла, в които са добавени 4 реда и са изтрити 3 реда
  1. 1 1
      src/components/eventForm/eventReduxForm.js
  2. 3 2
      src/conteiners/adminPhotogalaryPage/adminPhotogalaryPage.js

+ 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);