import React, { useState } from 'react'; import { LoadingButton } from '@material-ui/lab'; import Notification from '../../component/notification'; import Alert from '../../component/alert'; const ParentProfileWithdrawal = () => { const father_id = localStorage.getItem('kiki_acc_id'); const [notice, setNotice] = useState(localStorage.getItem('notice')); const [submit, setSubmit] = useState(false); const [_400error, set400Error] = useState(''); const handleSubmit = async (e) => { e.preventDefault(); setSubmit(true); await axios.delete('/api/fathers/withdrawal', {params:{father_id: father_id}}) .then(response => { setSubmit(false); setNotice(response.data.notice); switch(response.data.status_code){ case 200: window.location.href = "/p-account/withdrawal/complete"; break; case 400: set400Error("失敗しました。"); break; } }) } return (

退会確認

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

退会する
{ _400error && set400Error('')}>{_400error} }
) } export default ParentProfileWithdrawal;