소스 검색

admin page

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