import React, { useEffect, useState } from 'react'; import { useHistory } from 'react-router-dom'; import IconButton from "@material-ui/core/IconButton"; import axios from 'axios'; const ChildDetail = () => { const [image, setImage] = useState('/assets/img/avatar/avatar-sample03@2x.png'); const history = useHistory(); const child = { id: 1, name: '田中 達也', username:'chankan', tel:'08012927104', email:'chankan07@gmail.com', company:'株式会社ZOTMAN', image:'/assets/img/avatar/avatar-sample03@2x.png' } useEffect( () => { const formdata = new FormData(); let child_id = 1; // axios.get('/api/meetings/listOfNonApprovalOfChild', {child_id: child_id}) // .then(response => { // if(response.data.status_code==200){ // // window.location.href = '/register/c-account/complete'; // } // else if(response.data.status_code==400){ // // window.location.href = '/register/c-account/error'; // } // else if(response.data.status_code==500){ // // window.location.href = '/unknown-error'; // } // }) // .catch(err=>console.log(err)) },[] ); const handleImageChange = (e) => { e.preventDefault(); let reader = new FileReader(); let _file = e.target.files[0]; reader.readAsDataURL(_file); reader.onloadend = () => { setImage(reader.result); }; }; return (

子詳細

) } export default ChildDetail;