import React, { useEffect, useState } from 'react'; import ReactDOM from 'react-dom'; import IconButton from '@mui/material/IconButton'; import axios from 'axios'; import Notification from '../../component/notification'; const Profile = () => { const [image, setImage] = useState('/assets/img/avatar/avatar-sample03@2x.png'); 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 (

プロフィール

handleImageChange(e)}/>
{ image && }

{profile.name}

メール

{profile.email}

電話

{profile.tel}

会社名

{profile.company}

) } export default Profile;