import React, { useEffect, useState } from 'react'; import Notification from '../../component/notification'; import { useHistory } from 'react-router-dom' const ProfileWithdrawal = () => { const history = useHistory(); const fatherId = document.getElementById('father_id').value; async function handleClick() { try { axios.delete(`/api/fathers/delete/${fatherId}`) .then(response => { if(response.data.status_code == 200) { axios.delete(`/api/email-activations/deleteRelationFather/${fatherId}`) .then(response => { if(response.data.status_code == 200) { } else { } }); axios.delete(`/api/father-relations/deleteRelationFather/${fatherId}`) .then(response => { if(response.data.status_code == 200){ } else { } }); axios.delete(`/api/meetings/deleteRelationFather/${fatherId}`) .then(response => { if(response.data.status_code == 200){ } else { } }); } }); history.push({ pathname: '/p-account/profile/withdrawal/complete', state: {} }); } catch (error) { console.log('error', error); } } return (

退会確認

本当に退会してもよろしいでしょうか?

) } export default ProfileWithdrawal;