import React, { useState, useEffect } from 'react';
import { Formik } from 'formik';
import Menu from '../Components/Menu';
import axios from 'axios';
function Apply() {
    return (
        
            
            apply
            
 {
                        axios({
                            method: 'post',
                            url: '/reserves',
                            data: values,
                        }).then(res => {
                            if (res.status === 404) return alert(res.data.error)
                            alert("신청이 완료되었습니다!")
                        })
                            .catch(err => {
                                alert(err.error)
                            });
                        setTimeout(() => {
                            setSubmitting(false);
                        }, 400);  // finish the cycle in handler
                    }}
                >
                    {({
                        handleSubmit,
                        isSubmitting,
                    }) => (
                            
                                
                            
                        )}
                
             
         
    )
}
export default Apply