// material-ui
import {
Grid,
// Typography,
Tab,
Box,
// Button
} from '@mui/material';
import { TabPanel, TabContext, TabList } from '@mui/lab';
import * as React from "react";
import Loadable from 'components/Loadable';
import { lazy } from 'react';
const BaseGrid = Loadable(lazy(() => import('./BaseGrid')));
const StatusHistoryTab = Loadable(lazy(() => import('./StatusHistoryTab')));
const LoadingComponent = Loadable(lazy(() => import('../../../extra-pages/LoadingComponent')));
const ProofTab = Loadable(lazy(() => import('./ProofTab')));
// ==============================|| DASHBOARD - DEFAULT ||============================== //
const PublicNotice = ({applicationDetailData, proofList}) => {
const [_proofList, setProofList] = React.useState([]);
const [inProgressList,] = React.useState([]);
const [onReady,setOnReady] = React.useState(false);
const [selectedTab, setSelectedTab] = React.useState("1");
// const navigate = useNavigate();
const [statusHistoryList, setStatusHistoryList] = React.useState([]);
const reloadPage = () => {
window.location.reload(false);
}
React.useEffect(() => {
if (Object.keys(applicationDetailData).length > 0) {
setStatusHistoryList(applicationDetailData.statusHistoryList);
}
}, [applicationDetailData]);
React.useEffect(() => {
setProofList(proofList);
}, [proofList]);
React.useEffect(() => {
//if state data are ready and assign to different field
if (statusHistoryList.length > 0) {
setOnReady(true);
}
}, [statusHistoryList]);
// useEffect(() => {
// setLoding(false);
// }, [submittedList]);
const handleChange = (event, newValue) => {
setSelectedTab(newValue);
}
// const onBtnClick = () => {
// navigate('/publicNotice/apply')
// }
return (
!onReady ?
:
{/*col 2*/}
);
};
export default PublicNotice;