|
|
@@ -21,10 +21,10 @@ const ProofTab = Loadable(lazy(() => import('./ProofTab'))); |
|
|
|
|
|
|
|
// ==============================|| DASHBOARD - DEFAULT ||============================== // |
|
|
|
|
|
|
|
const PublicNotice = ({applicationDetailData, proofList}) => { |
|
|
|
const PublicNotice = ({ applicationDetailData, proofList }) => { |
|
|
|
const [_proofList, setProofList] = React.useState([]); |
|
|
|
const [inProgressList,] = React.useState([]); |
|
|
|
const [onReady,setOnReady] = React.useState(false); |
|
|
|
const [onReady, setOnReady] = React.useState(false); |
|
|
|
const [selectedTab, setSelectedTab] = React.useState("1"); |
|
|
|
// const navigate = useNavigate(); |
|
|
|
const [statusHistoryList, setStatusHistoryList] = React.useState([]); |
|
|
@@ -66,13 +66,13 @@ const PublicNotice = ({applicationDetailData, proofList}) => { |
|
|
|
!onReady ? |
|
|
|
<LoadingComponent /> |
|
|
|
: |
|
|
|
<Grid container sx={{minHeight: '40vh'}}> |
|
|
|
<Grid container sx={{ minHeight: '40vh' }}> |
|
|
|
{/*col 2*/} |
|
|
|
<Grid item xs={12}> |
|
|
|
<TabContext value={selectedTab}> |
|
|
|
<Box sx={{ borderBottom: 1, borderColor: 'divider' }}> |
|
|
|
<TabList onChange={handleChange} aria-label="lab API tabs example"> |
|
|
|
<Tab label={"Proof(" + (_proofList?.length?_proofList?.length:0) + ")"} value="1" /> |
|
|
|
<Tab label={"Proof(" + (_proofList?.length ? _proofList?.length : 0) + ")"} value="1" /> |
|
|
|
<Tab label={"Payment(" + inProgressList.length + ")"} value="2" /> |
|
|
|
<Tab label={"Status History(" + statusHistoryList.length + ")"} value="3" /> |
|
|
|
</TabList> |
|
|
|