Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 

671 řádky
40 KiB

  1. // material-ui
  2. import {
  3. FormControl,
  4. Button,
  5. Grid,
  6. // InputAdornment,
  7. Typography, FormLabel,
  8. OutlinedInput,
  9. Stack,
  10. Dialog, DialogTitle, DialogContent, DialogActions
  11. } from '@mui/material';
  12. // import MainCard from "../../components/MainCard";
  13. const MainCard = Loadable(lazy(() => import('components/MainCard')));
  14. import { useForm } from "react-hook-form";
  15. import { useNavigate } from "react-router-dom";
  16. import {
  17. useEffect,
  18. useState
  19. } from "react";
  20. // import Checkbox from "@mui/material/Checkbox";
  21. import Loadable from 'components/Loadable';
  22. import { lazy } from 'react';
  23. const LoadingComponent = Loadable(lazy(() => import('../../extra-pages/LoadingComponent')));
  24. // import {useParams} from "react-router-dom";
  25. import * as HttpUtils from "utils/HttpUtils"
  26. import * as UrlUtils from "utils/ApiPathConst"
  27. import * as StatusUtils from "utils/statusUtils/PublicNoteStatusUtils";
  28. import * as DateUtils from "utils/DateUtils";
  29. import * as FormatUtils from "utils/FormatUtils";
  30. import {
  31. isORGLoggedIn,
  32. } from "utils/Utils";
  33. // import BorderColorOutlinedIcon from '@mui/icons-material/BorderColorOutlined';
  34. // import DoneIcon from '@mui/icons-material/Done';
  35. import CloseIcon from '@mui/icons-material/Close';
  36. import EditNoteIcon from '@mui/icons-material/EditNote';
  37. import DownloadIcon from '@mui/icons-material/Download';
  38. import { PNSPS_BUTTON_THEME } from "../../../themes/buttonConst";
  39. import { ThemeProvider } from "@emotion/react";
  40. import * as React from "react";
  41. import { FormattedMessage, useIntl } from "react-intl";
  42. // ==============================|| DASHBOARD - DEFAULT ||============================== //
  43. const ApplicationDetailCard = (
  44. { applicationDetailData,
  45. setStatus,
  46. // updateUserObject,
  47. // isNewRecord
  48. }
  49. ) => {
  50. const [isPopUp, setIsPopUp] = useState(false);
  51. const [errorText, setErrorText] = useState("");
  52. const [errorPopUp, setErrorPopUp] = useState(false);
  53. // const params = useParams();
  54. const [currentApplicationDetailData, setCurrentApplicationDetailData] = useState({});
  55. const [fee, setFee] = useState(0);
  56. const [companyName, setCompanyName] = useState({});
  57. const [fileDetail, setfileDetail] = useState({});
  58. const [onReady, setOnReady] = useState(false);
  59. const [issueNum, setIssueNum] = useState("");
  60. const [issueDate, setIssueDate] = useState("");
  61. const { register,
  62. // getValues
  63. } = useForm();
  64. const navigate = useNavigate();
  65. const intl = useIntl();
  66. useEffect(() => {
  67. //if user data from parent are not null
  68. // console.log(applicationDetailData)
  69. if (Object.keys(applicationDetailData).length > 0 && applicationDetailData.data !== null) {
  70. setCurrentApplicationDetailData(applicationDetailData.data);
  71. setCompanyName(applicationDetailData.companyName);
  72. setfileDetail(applicationDetailData.fileDetail);
  73. setIssueNum(applicationDetailData.gazetteIssueDetail.volume + "/" + applicationDetailData.gazetteIssueDetail.year
  74. + " No. " + applicationDetailData.gazetteIssueDetail.issueNo);
  75. setIssueDate(DateUtils.dateFormat(applicationDetailData.gazetteIssueDetail.issueDate, "D MMM YYYY (ddd)"));
  76. for (let i = 0; i < applicationDetailData.proofList.length; i++) {
  77. if (applicationDetailData.proofList[i].action == true) {
  78. setFee(applicationDetailData.proofList[i].fee);
  79. }
  80. }
  81. }
  82. }, [applicationDetailData]);
  83. useEffect(() => {
  84. //if state data are ready and assign to different field
  85. // console.log(currentApplicationDetailData)
  86. if (Object.keys(currentApplicationDetailData).length > 0) {
  87. setOnReady(true);
  88. }
  89. }, [currentApplicationDetailData]);
  90. const onDownloadClick = () => () => {
  91. HttpUtils.fileDownload({
  92. fileId: fileDetail.id,
  93. skey: fileDetail.skey,
  94. filename: fileDetail.filename,
  95. });
  96. };
  97. const cancelledClick = () => () => {
  98. setStatus("cancel")
  99. };
  100. const checkExprityDate = () => {
  101. HttpUtils.post({
  102. url: UrlUtils.POST_CHECK_APP_EXPRITY_DATE,
  103. params: {
  104. ids: [currentApplicationDetailData.id]
  105. },
  106. onSuccess: (responData) => {
  107. if (responData.success == true) {
  108. setIsPopUp(true);
  109. return;
  110. }
  111. setErrorText("公共啟事申請已過期");
  112. setErrorPopUp(true);
  113. }
  114. });
  115. };
  116. function doPayment() {
  117. setIsPopUp(false);
  118. navigate('/paymentPage', { state: { amount: fee, appIdList: [currentApplicationDetailData.id] } });
  119. }
  120. return (
  121. !onReady ?
  122. <LoadingComponent />
  123. :
  124. <MainCard elevation={0}
  125. border={false}
  126. content={false}
  127. >
  128. <Grid container spacing={1} direction="row">
  129. <Grid item xs={12}>
  130. <Stack
  131. direction="row"
  132. justifyContent="space-between"
  133. alignItems="center"
  134. spacing={2}
  135. mb={2}
  136. >
  137. <ThemeProvider theme={PNSPS_BUTTON_THEME}>
  138. {
  139. currentApplicationDetailData.status == "confirmed" ?
  140. <Button
  141. variant="contained"
  142. color="create"
  143. onClick={() => { checkExprityDate(true) }}
  144. disabled={currentApplicationDetailData.status == "rejected"
  145. || currentApplicationDetailData.status == "cancelled"
  146. || currentApplicationDetailData.status == "paid"
  147. || currentApplicationDetailData.creditor}
  148. startIcon={<EditNoteIcon />}
  149. aria-label={intl.formatMessage({ id: 'payFor' })}
  150. >
  151. <FormattedMessage id="payFor" />
  152. </Button>
  153. : null
  154. }
  155. <Button
  156. variant="contained"
  157. onClick={cancelledClick()}
  158. color="edit"
  159. disabled={currentApplicationDetailData.status !== "submitted"}
  160. title={intl.formatMessage({ id: 'cancel' })}
  161. startIcon={<CloseIcon />}
  162. aria-label={intl.formatMessage({ id: 'cancel' })}
  163. >
  164. <FormattedMessage id="cancel" />
  165. </Button>
  166. </ThemeProvider>
  167. </Stack>
  168. </Grid>
  169. </Grid>
  170. <Typography variant="h4" sx={{ mb: 2, borderBottom: "1px solid black" }}>
  171. <FormattedMessage id="publicNoticeDetailTitle" />
  172. </Typography>
  173. <form>
  174. <Grid container direction="column">
  175. <Grid item xs={12} md={12}>
  176. <Grid container direction="row" justifyContent="space-between"
  177. alignItems="center">
  178. <Grid item xs={12} sm={12} md={9} lg={6} sx={{ mb: 1 }}>
  179. <Grid container alignItems={"center"}>
  180. <Grid item xs={12} md={3} lg={3}
  181. sx={{ display: 'flex', alignItems: 'center' }}>
  182. <FormLabel><Typography variant="pnspsFormParagraph">
  183. <FormattedMessage id="applicationId" />:
  184. </Typography></FormLabel>
  185. </Grid>
  186. <Grid item xs={12} md={9} lg={9}>
  187. <FormControl variant="outlined" fullWidth disabled>
  188. <OutlinedInput
  189. fullWidth
  190. size="small"
  191. {...register("appNo",
  192. {
  193. value: currentApplicationDetailData.appNo,
  194. })}
  195. id='appNo'
  196. sx={{
  197. "& .MuiInputBase-input.Mui-disabled": {
  198. WebkitTextFillColor: "#000000",
  199. background: "#f8f8f8",
  200. },
  201. }}
  202. />
  203. </FormControl>
  204. </Grid>
  205. </Grid>
  206. </Grid>
  207. <Grid item xs={12} sm={12} md={9} lg={5} sx={{ mb: 1, ml: 1 }}>
  208. <Grid container alignItems={"center"}>
  209. <Grid item xs={12} md={3} lg={3}
  210. sx={{ display: 'flex', alignItems: 'center' }}>
  211. <FormLabel><Typography variant="pnspsFormParagraph">
  212. <FormattedMessage id="applyStatus" />:
  213. </Typography></FormLabel>
  214. </Grid>
  215. <Grid item xs={12} md={4} lg={4}>
  216. <FormControl variant="outlined">
  217. {currentApplicationDetailData.status ? StatusUtils.getStatusByTextIntl(currentApplicationDetailData.status, false, intl) : ""}
  218. </FormControl>
  219. </Grid>
  220. </Grid>
  221. {
  222. currentApplicationDetailData.reason ?
  223. <Grid item xs={12} md={12} lg={12}>
  224. <Grid container alignItems={"center"} direction="row" >
  225. <Grid item xs={12} md={3} lg={3}>
  226. <FormLabel><Typography variant="pnspsFormParagraph"><FormattedMessage id="reason" />:</Typography></FormLabel>
  227. </Grid>
  228. <Grid item xs={12} md={9} lg={9}>
  229. <FormLabel>
  230. <Typography id='reason' variant="pnspsFormParagraph">
  231. {currentApplicationDetailData.reason}
  232. </Typography>
  233. </FormLabel>
  234. </Grid>
  235. </Grid>
  236. </Grid>
  237. : ""
  238. }
  239. </Grid>
  240. </Grid>
  241. <Grid container direction="row" justifyContent="space-between"
  242. alignItems="center">
  243. <Grid item xs={12} sm={12} md={9} lg={6} sx={{ mb: 1 }}>
  244. <Grid container alignItems={"center"}>
  245. <Grid item xs={12} md={3} lg={3}
  246. sx={{ display: 'flex', alignItems: 'center' }}>
  247. <FormLabel><Typography variant="pnspsFormParagraph">
  248. <FormattedMessage id="applyPerson" />:
  249. </Typography></FormLabel>
  250. </Grid>
  251. <Grid item xs={12} md={9} lg={9}>
  252. <FormControl variant="outlined" fullWidth disabled >
  253. {currentApplicationDetailData.orgId === null ?
  254. <OutlinedInput
  255. fullWidth
  256. size="small"
  257. {...register("contactPerson",
  258. {
  259. value: currentApplicationDetailData.contactPerson,
  260. })}
  261. id='contactPerson'
  262. sx={{
  263. "& .MuiInputBase-input.Mui-disabled": {
  264. WebkitTextFillColor: "#000000",
  265. background: "#f8f8f8",
  266. },
  267. }}
  268. /> :
  269. <OutlinedInput
  270. fullWidth
  271. size="small"
  272. {...register("companyName",
  273. {
  274. value: companyName.enCompanyName,
  275. })}
  276. id='companyName'
  277. sx={{
  278. "& .MuiInputBase-input.Mui-disabled": {
  279. WebkitTextFillColor: "#000000",
  280. background: "#f8f8f8",
  281. },
  282. }}
  283. />
  284. }
  285. </FormControl>
  286. </Grid>
  287. </Grid>
  288. </Grid>
  289. <Grid item xs={12} sm={12} md={9} lg={5} sx={{ mb: 1, ml: { lg: 1 } }}>
  290. <Grid container alignItems={"center"}>
  291. <Grid item xs={12} md={3} lg={3}
  292. sx={{ display: 'flex', alignItems: 'center' }}>
  293. <FormLabel><Typography variant="pnspsFormParagraph">
  294. <FormattedMessage id="gazetteCount" />:
  295. </Typography></FormLabel>
  296. </Grid>
  297. <Grid item xs={12} md={9} lg={9}>
  298. <Stack direction="row">
  299. <FormControl variant="outlined" fullWidth disabled>
  300. <OutlinedInput
  301. size="small"
  302. {...register("issueNum",
  303. {
  304. value: issueNum,
  305. })}
  306. id='issueNum'
  307. sx={{
  308. "& .MuiInputBase-input.Mui-disabled": {
  309. WebkitTextFillColor: "#000000",
  310. background: "#f8f8f8",
  311. },
  312. }}
  313. />
  314. </FormControl>
  315. </Stack>
  316. </Grid>
  317. </Grid>
  318. </Grid>
  319. </Grid>
  320. <Grid container direction="row" justifyContent="space-between"
  321. alignItems="center">
  322. <Grid item xs={12} sm={12} md={9} lg={6} sx={{ mb: 1 }}>
  323. <Grid container alignItems={"center"}>
  324. <Grid item xs={12} md={3} lg={3}
  325. sx={{ display: 'flex', alignItems: 'center' }}>
  326. <FormLabel><Typography variant="pnspsFormParagraph">
  327. <FormattedMessage id="contactPerson" />:
  328. </Typography></FormLabel>
  329. </Grid>
  330. <Grid item xs={12} md={9} lg={9}>
  331. <FormControl variant="outlined" fullWidth disabled>
  332. <OutlinedInput
  333. fullWidth
  334. size="small"
  335. {...register("contactPerson",
  336. {
  337. value: currentApplicationDetailData.contactPerson,
  338. })}
  339. id='contactPerson'
  340. sx={{
  341. "& .MuiInputBase-input.Mui-disabled": {
  342. WebkitTextFillColor: "#000000",
  343. background: "#f8f8f8",
  344. },
  345. }}
  346. />
  347. </FormControl>
  348. </Grid>
  349. </Grid>
  350. </Grid>
  351. <Grid item xs={12} sm={12} md={9} lg={5} sx={{ mb: 1, ml: { lg: 1 } }}>
  352. <Grid container alignItems={"center"}>
  353. <Grid item xs={12} md={3} lg={3}
  354. sx={{ display: 'flex', alignItems: 'center' }}>
  355. <FormLabel><Typography variant="pnspsFormParagraph">
  356. <FormattedMessage id="publishDate" />:
  357. </Typography></FormLabel>
  358. </Grid>
  359. <Grid item xs={12} md={9} lg={9}>
  360. <Stack direction="row">
  361. <FormControl variant="outlined" fullWidth disabled>
  362. <OutlinedInput
  363. size="small"
  364. {...register("issueDate",
  365. {
  366. value: issueDate,
  367. })}
  368. id='issueDate'
  369. sx={{
  370. "& .MuiInputBase-input.Mui-disabled": {
  371. WebkitTextFillColor: "#000000",
  372. background: "#f8f8f8",
  373. },
  374. }}
  375. />
  376. </FormControl>
  377. </Stack>
  378. </Grid>
  379. </Grid>
  380. </Grid>
  381. </Grid>
  382. <Grid container direction="row" justifyContent="space-between"
  383. alignItems="center">
  384. <Grid item xs={12} sm={12} md={9} lg={6} sx={{ mb: 1, }}>
  385. <Grid container alignItems={"center"}>
  386. <Grid item xs={12} md={3} lg={3}
  387. sx={{ display: 'flex', alignItems: 'center' }}>
  388. <FormLabel><Typography variant="pnspsFormParagraph">
  389. <FormattedMessage id="userContactNumber" />:
  390. </Typography></FormLabel>
  391. </Grid>
  392. <Grid item xs={12} md={9} lg={9}>
  393. <Stack direction="row">
  394. <FormControl variant="outlined" sx={{ width: '25%' }} disabled>
  395. <OutlinedInput
  396. size="small"
  397. {...register("countryCode",
  398. {
  399. value: currentApplicationDetailData.contactTelNo.countryCode,
  400. })}
  401. id='countryCode'
  402. sx={{
  403. "& .MuiInputBase-input.Mui-disabled": {
  404. WebkitTextFillColor: "#000000",
  405. background: "#f8f8f8",
  406. },
  407. }}
  408. />
  409. </FormControl>
  410. <FormControl variant="outlined" sx={{ width: '100%' }} disabled>
  411. <OutlinedInput
  412. size="small"
  413. {...register("phoneNumber",
  414. {
  415. value: currentApplicationDetailData.contactTelNo.phoneNumber,
  416. })}
  417. id='phoneNumber'
  418. sx={{
  419. "& .MuiInputBase-input.Mui-disabled": {
  420. WebkitTextFillColor: "#000000",
  421. background: "#f8f8f8",
  422. },
  423. }}
  424. />
  425. </FormControl>
  426. </Stack>
  427. </Grid>
  428. </Grid>
  429. </Grid>
  430. {
  431. fee > 0 ?
  432. <Grid item xs={12} sm={12} md={9} lg={5} sx={{ mb: 1, ml: 1 }}>
  433. <Grid container alignItems={"center"}>
  434. <Grid item xs={12} md={3} lg={3}
  435. sx={{ display: 'flex', alignItems: 'center' }}>
  436. <FormLabel><Typography variant="pnspsFormParagraph">
  437. <FormattedMessage id="currencyPrice" />(HK$):
  438. </Typography></FormLabel>
  439. </Grid>
  440. <Grid item xs={12} md={9} lg={9}>
  441. <FormLabel><Typography variant="pnspsFormParagraph">{FormatUtils.currencyFormat(fee)}</Typography></FormLabel>
  442. </Grid>
  443. </Grid>
  444. </Grid>
  445. :
  446. <></>
  447. }
  448. </Grid>
  449. <Grid item xs={12} sm={12} md={9} lg={6} sx={{ mb: 1, }}>
  450. <Grid container alignItems={"center"}>
  451. <Grid item xs={12} md={3} lg={3}
  452. sx={{ display: 'flex', alignItems: 'center' }}>
  453. <FormLabel><Typography variant="pnspsFormParagraph">
  454. <FormattedMessage id="userFaxNumber" />:
  455. </Typography></FormLabel>
  456. </Grid>
  457. <Grid item xs={12} sm={12} md={9} lg={9}>
  458. <Stack direction="row">
  459. <FormControl variant="outlined" sx={{ width: '25%' }} disabled>
  460. <OutlinedInput
  461. size="small"
  462. {...register("countryCode",
  463. {
  464. value: currentApplicationDetailData.contactFaxNo.countryCode,
  465. })}
  466. id='countryCode'
  467. sx={{
  468. "& .MuiInputBase-input.Mui-disabled": {
  469. WebkitTextFillColor: "#000000",
  470. background: "#f8f8f8",
  471. },
  472. }}
  473. />
  474. </FormControl>
  475. <FormControl variant="outlined" sx={{ width: '100%' }} disabled>
  476. <OutlinedInput
  477. size="small"
  478. {...register("faxNumber",
  479. {
  480. value: currentApplicationDetailData.contactFaxNo.faxNumber,
  481. })}
  482. id='faxNumber'
  483. sx={{
  484. "& .MuiInputBase-input.Mui-disabled": {
  485. WebkitTextFillColor: "#000000",
  486. background: "#f8f8f8",
  487. },
  488. }}
  489. />
  490. </FormControl>
  491. </Stack>
  492. </Grid>
  493. </Grid>
  494. </Grid>
  495. <Grid container direction="row" justifyContent="space-between"
  496. alignItems="center">
  497. <Grid item xs={12} sm={12} md={11} lg={11} mt={1}>
  498. <Grid container alignItems={"center"}>
  499. <Grid item xs={12} sm={12} md={12} lg={12}>
  500. <Grid container direction="row">
  501. <Grid item xs={12} sm={12} md={2.5} lg={1.6}
  502. sx={{ display: 'flex', alignItems: 'center' }}>
  503. <FormLabel><Typography variant="pnspsFormParagraph">
  504. <FormattedMessage id="draftFile" />:
  505. </Typography></FormLabel>
  506. </Grid>
  507. <Grid item xs={12} sm={12} md={9} lg={9} >
  508. <Grid container direction="row" alignItems="center" justifyContent="flex-start">
  509. <Grid item xs={12} sm={12} md={12} lg={12} sx={{ wordBreak: 'break-word', }}>
  510. <Typography
  511. fullWidth
  512. id='fileName'
  513. variant="pnspsFormParagraph"
  514. >
  515. {fileDetail.filename}
  516. </Typography>
  517. <ThemeProvider theme={PNSPS_BUTTON_THEME}>
  518. <Button
  519. sx={{ ml: 3 }}
  520. variant="contained"
  521. onClick={onDownloadClick()}
  522. aria-label={intl.formatMessage({ id: 'download' })}
  523. title={intl.formatMessage({ id: 'download' })}
  524. color="save"
  525. startIcon={<DownloadIcon sx={{ alignItems: "center" }} />}
  526. >
  527. <FormattedMessage id="download" />
  528. </Button>
  529. </ThemeProvider>
  530. </Grid>
  531. </Grid>
  532. </Grid>
  533. </Grid>
  534. </Grid>
  535. </Grid>
  536. </Grid>
  537. </Grid>
  538. {isORGLoggedIn() ?
  539. <Grid item xs={12} md={9} lg={6} sx={{ mb: 1, paddingTop: 2 }}>
  540. <Grid container alignItems={"center"}>
  541. <Grid item xs={12} md={3} lg={3}
  542. sx={{ display: 'flex', alignItems: 'center' }}>
  543. <FormLabel><Typography variant="pnspsFormParagraph">Care Of:</Typography></FormLabel>
  544. </Grid>
  545. <Grid item xs={12} md={9} lg={9}>
  546. <Typography variant="pnspsFormParagraph">{currentApplicationDetailData.careOf}</Typography>
  547. </Grid>
  548. </Grid>
  549. </Grid> : null
  550. }
  551. <Grid item xs={12} md={9} lg={6} sx={{ mb: 1, paddingTop: 2 }}>
  552. <Grid container alignItems={"center"}>
  553. <Grid item xs={12} md={3} lg={3}
  554. sx={{ display: 'flex', alignItems: 'center' }}>
  555. <FormLabel><Typography variant="pnspsFormParagraph">
  556. <FormattedMessage id="extraMark" />:
  557. </Typography></FormLabel>
  558. </Grid>
  559. <Grid item xs={12} md={9} lg={9}>
  560. <Typography variant="pnspsFormParagraph">{currentApplicationDetailData.remarks}</Typography>
  561. </Grid>
  562. </Grid>
  563. </Grid>
  564. </Grid>
  565. </Grid>
  566. <div>
  567. <Dialog
  568. open={isPopUp}
  569. onClose={() => setIsPopUp(false)}
  570. PaperProps={{
  571. sx: {
  572. minWidth: '40vw',
  573. maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '30vw' },
  574. maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '50vh' }
  575. }
  576. }}
  577. >
  578. <DialogTitle>
  579. <Typography variant="h3" >
  580. <FormattedMessage id="payConfirm" />
  581. </Typography>
  582. </DialogTitle>
  583. <DialogContent style={{ display: 'flex', }}>
  584. <Stack direction="column" justifyContent="space-between">
  585. <Typography variant="h4">
  586. <FormattedMessage id="totalAmount" /> (HK$): {FormatUtils.currencyFormat(fee)}
  587. </Typography>
  588. </Stack>
  589. </DialogContent>
  590. <DialogActions>
  591. <Button
  592. onClick={() => setIsPopUp(false)}
  593. aria-label={intl.formatMessage({ id: 'close' })}
  594. >
  595. <Typography variant="pnspsFormParagraph">
  596. <FormattedMessage id="close" />
  597. </Typography></Button>
  598. <Button
  599. onClick={() => doPayment()}
  600. aria-label={intl.formatMessage({ id: 'confirm' })}
  601. >
  602. <Typography variant="pnspsFormParagraph">
  603. <FormattedMessage id="confirm" />
  604. </Typography></Button>
  605. </DialogActions>
  606. </Dialog>
  607. </div>
  608. <div>
  609. <Dialog
  610. open={errorPopUp}
  611. onClose={() => setErrorPopUp(false)}
  612. PaperProps={{
  613. sx: {
  614. minWidth: '40vw',
  615. maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' },
  616. maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' }
  617. }
  618. }}
  619. >
  620. <DialogTitle></DialogTitle>
  621. <Typography variant="h2" style={{ padding: '16px' }}>行動失敗</Typography>
  622. <DialogContent style={{ display: 'flex', }}>
  623. <Stack direction="column" justifyContent="space-between">
  624. {
  625. errorText
  626. }
  627. </Stack>
  628. </DialogContent>
  629. <DialogActions>
  630. <Button
  631. onClick={() => setErrorPopUp(false)}
  632. aria-label={intl.formatMessage({ id: 'close' })}
  633. >
  634. <Typography variant="pnspsFormParagraph">
  635. <FormattedMessage id="close" />
  636. </Typography></Button>
  637. </DialogActions>
  638. </Dialog>
  639. </div>
  640. </form>
  641. </MainCard >
  642. );
  643. };
  644. export default ApplicationDetailCard;