import React, { useEffect, useState } from 'react'; import { useHistory } from 'react-router-dom'; import IconButton from "@material-ui/core/IconButton"; import axios from 'axios'; import Notification from '../../component/notification'; const ProfileDetail = () => { const [image, setImage] = useState('/assets/img/avatar/avatar-sample03@2x.png'); const history = useHistory(); const profile = { id: 1, name: '田中 達也', 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 ProfileDetail;