// material-ui import { Grid, // Typography, Tab, Box, // Button } from '@mui/material'; import { TabPanel, TabContext, TabList } from '@mui/lab'; import { // useEffect, useState } from "react"; // import { useNavigate } from "react-router-dom"; import * as React from "react"; // import * as HttpUtils from "../../../utils/HttpUtils"; // import * as UrlUtils from "../../../utils/ApiPathConst"; import Loadable from 'components/Loadable'; import { lazy } from 'react'; const BaseGrid = Loadable(lazy(() => import('./BaseGrid'))); const PendingPaymentTab = Loadable(lazy(() => import('./PendingPaymentTab'))); const LoadingComponent = Loadable(lazy(() => import('../../extra-pages/LoadingComponent'))); // const SearchTab = Loadable(lazy(() => import('./SearchPublicNoticeTab'))); // ==============================|| DASHBOARD - DEFAULT ||============================== // const PublicNotice = () => { const [submittedList, ] = useState([]); const [inProgressList, ] = useState([]); const [pendingPaymentList, ] = useState([]); const [isLoading,] = useState(false); const [selectedTab, setSelectedTab] = useState("1"); // const navigate = useNavigate(); // useEffect(() => { // loadData(); // }, []); const reloadPage = () => { window.location.reload(false); } // const loadData = () => { // setLoding(true); // HttpUtils.get({ // url: `${UrlUtils.GET_PUBLIC_NOTICE_LIST_ListByStatus}`, // onSuccess: function (response) { // setSubmittedList(response["submitted"]); // setInProgressList(response["inProgress"]); // setPendingPaymentList(response["pendingPayment"]); // setPendingPublishList(response["pendingPublish"]); // } // }); // }; // useEffect(() => { // setLoding(false); // }, [submittedList]); const handleChange = (event, newValue) => { setSelectedTab(newValue); } // const onBtnClick = () => { // navigate('/publicNotice/apply') // } return ( isLoading ? : {/*col 2*/} ); }; export default PublicNotice;