import React, { useEffect, useState } from 'react'; import { CircularProgress } from '@material-ui/core'; import moment from 'moment'; import axios from 'axios'; import { useHistory } from 'react-router-dom' import Notification from '../../component/notification'; const Meeting = () => { const history = useHistory(); const [keyword, setKeyword] = useState('') const [loading, setLoading] = useState(true); const [finish, setFinish] = useState(false); const [completeOfFather, setCompleteOfFather ] = useState(null); const [inCompleteOfFather, setInCompleteOfFather ] = useState(null); useEffect(() => { axios.get('/api/admin/fathers/meetings/listOfCompleteOfFather', {params: { father_id: 1 }}).then((response) => { if(response.data.status_code==200){ console.log(response.data.params); } else if(response.data.status_code==400){ //TODO } setCompleteOfFather(response.data.params); }); }, []); useEffect(() => { axios.get('/api/admin/fathers/meetings/listOfIncompleteOfFather', {params: { father_id: 1 }}).then((response) => { if(response.data.status_code==200){ console.log(response.data.params); setInCompleteOfFather(response.data.params); setLoading(false); } else if(response.data.status_code==400){ //TODO } }); }, []); return (