|
|
@@ -19,7 +19,8 @@ import ForwardIcon from '@mui/icons-material/Forward'; |
|
|
|
import { |
|
|
|
isORGLoggedIn, |
|
|
|
isDummyLoggedIn, |
|
|
|
isCreditorLoggedIn |
|
|
|
isCreditorLoggedIn, |
|
|
|
checkIsOnlyOnlinePaymentByIssueDate |
|
|
|
} from "utils/Utils"; |
|
|
|
|
|
|
|
import { useNavigate } from "react-router-dom"; |
|
|
@@ -33,7 +34,7 @@ const LoadingComponent = Loadable(lazy(() => import('../../extra-pages/LoadingCo |
|
|
|
|
|
|
|
// ==============================|| DASHBOARD - DEFAULT ||============================== // |
|
|
|
|
|
|
|
const PublicNoticeApplyForm = ({ loadedData, _selections, gazetteIssueList, isOnlyOnlinePayment }) => { |
|
|
|
const PublicNoticeApplyForm = ({ loadedData, _selections, gazetteIssueList }) => { |
|
|
|
const [isWarningPopUp, setIsWarningPopUp] = useState(false); |
|
|
|
const [warningTitle, setWarningTitle] = useState(""); |
|
|
|
const [warningText, setWarningText] = useState(""); |
|
|
@@ -51,6 +52,7 @@ const PublicNoticeApplyForm = ({ loadedData, _selections, gazetteIssueList, isOn |
|
|
|
const [issueId, setIssueId] = useState(loadedData.issueId); |
|
|
|
const [closeDate, setCloseDate] = useState(null); |
|
|
|
const [closingDateOff, setClosingDateOff] = useState(null); |
|
|
|
const [isOnlyOnlinePayment, setOnlyOnlinePayment] = useState(); |
|
|
|
const navigate = useNavigate(); |
|
|
|
|
|
|
|
const BackgroundHead = { |
|
|
@@ -83,6 +85,8 @@ const PublicNoticeApplyForm = ({ loadedData, _selections, gazetteIssueList, isOn |
|
|
|
if (data.id == issueId) { |
|
|
|
setCloseDate(data.closingDate) |
|
|
|
setClosingDateOff(data.closingDateOff) |
|
|
|
setOnlyOnlinePayment(checkIsOnlyOnlinePaymentByIssueDate(data.issueDate)) |
|
|
|
|
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|