import React, { Component } from "react";
import { connect } from "react-redux";
import * as actions from "../../actions/adminMainPageActions";
import AdminHeader from "../../components/adminHeader/adminHeader";
import Form from "../../components/eventForm/eventReduxForm";
import ConfirmationMessage from "../../components/confirmationMessage/confirmationMessage";
// import eventFormInitialValue from "../../state/addEventInitialValue"
class AdminAddEventPage extends Component {
state = {
// eventFormInitialValue: eventFormInitialValue.eventFormInitialValue,
confirmationMessageFlag: false
};
componentDidMount() {
this.props.getEvents();
}
// resetInitValue = () => this.setState({ eventFormInitialValue: {} });
showConfirmationMessage = () => this.setState({confirmationMessageFlag: true });
closeConfirmationMessage = () => this.setState({confirmationMessageFlag: false });
render() {
const {
postNewEvent,
changeEvent,
// removeEvent,
eventFormInitialValue,
eventTypes,
editFormFlag
} = this.props
return (
<>