Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 

145 wiersze
6.3 KiB

  1. // material-ui
  2. import {
  3. Grid,
  4. Typography,
  5. Stack,
  6. Button,
  7. } from '@mui/material';
  8. import {
  9. checkIsOnlyOnlinePayment,
  10. } from "utils/Utils";
  11. import { useNavigate } from "react-router-dom";
  12. import * as DateUtils from "utils/DateUtils";
  13. import titleBackgroundImg from 'assets/images/dashboard/gazette-bar.png'
  14. import { FormattedMessage, useIntl } from "react-intl";
  15. import SafeHtml from 'components/SafeHtml';
  16. const BackgroundHead = {
  17. backgroundImage: `url(${titleBackgroundImg})`,
  18. width: '100%',
  19. height: '100%',
  20. backgroundSize: 'contain',
  21. backgroundRepeat: 'no-repeat',
  22. backgroundColor: '#0C489E',
  23. backgroundPosition: 'right'
  24. }
  25. // ==============================|| DASHBOARD - DEFAULT ||============================== //
  26. const Index = ({ record }) => {
  27. const navigate = useNavigate()
  28. const intl = useIntl();
  29. const isAfter = checkIsOnlyOnlinePayment();
  30. return (
  31. (
  32. <Grid container sx={{ minHeight: '110vh', backgroundColor: '#fff' }} direction="column" justifyContent="flex-start" alignItems="center" >
  33. <Grid item xs={12} width="100%">
  34. <div style={BackgroundHead} width="100%" >
  35. <Stack direction="row" height='70px' >
  36. <Typography ml={15} color='#FFF' variant="h4" sx={{ display: { xs: 'none', sm: 'none', md: 'block' }, pt: 2 }} >
  37. <FormattedMessage id="proofRecord" />
  38. </Typography>
  39. </Stack>
  40. </div>
  41. </Grid>
  42. {/*row 1*/}
  43. <Grid item xs={12} md={12} >
  44. <Grid container justifyContent="flex-start" alignItems="center" >
  45. <center>
  46. <Grid item xs={12} md={8} >
  47. {isAfter ? (
  48. <Typography
  49. variant="h4"
  50. sx={{ textAlign: "left", ml: 8, mr: 4, mt: 4,
  51. textDecoration: "underline",
  52. textDecorationThickness: "2px",
  53. textUnderlineOffset: "4px" }}
  54. >
  55. <FormattedMessage id="proofPaymentHeader_demandNote2" />
  56. </Typography>
  57. ) : (
  58. <Typography
  59. variant="h4"
  60. sx={{
  61. textAlign: "left",
  62. ml: 4,
  63. mr: 4,
  64. mt: 4,
  65. textDecoration: "underline",
  66. textDecorationThickness: "2px",
  67. textUnderlineOffset: "4px"
  68. }}
  69. >
  70. <FormattedMessage id="proofPaymentHeader_demandNote" />
  71. </Typography>
  72. )}
  73. <Typography variant="h5" sx={{ ml: 8, mt: 4, mr: 8, textAlign: "left" }}>
  74. <SafeHtml html={intl.formatMessage(
  75. {
  76. id: 'proofPaymentBody_demandNote'
  77. },
  78. {
  79. appNo: record?.appNo,
  80. }
  81. )} />
  82. <br />
  83. <SafeHtml html={intl.formatMessage(
  84. {
  85. id: 'proofPaymentBody_demandNote2'
  86. },
  87. {
  88. closingDateOff: DateUtils.dateFormat(record?.closingDateOff, intl.formatMessage({id: "dateStrFormat"})),
  89. email: record?.mail,
  90. }
  91. )} />
  92. <br />
  93. <SafeHtml html={intl.formatMessage(
  94. {
  95. id: 'proofPaymentBody_demandNote3'
  96. },
  97. {
  98. paymentDeadline: DateUtils.dateFormat(record?.closingDate, intl.formatMessage({id: "dateStrFormat"})),
  99. }
  100. )} />
  101. <br />
  102. <SafeHtml html={intl.formatMessage(
  103. {
  104. id: 'proofPaymentBody_demandNote4'
  105. }
  106. )} />
  107. </Typography>
  108. <Typography variant="h3" sx={{ ml: 8, mt: 4, mr: 8, textAlign: "center" }}>
  109. <Button
  110. component="span"
  111. variant="contained"
  112. size="large"
  113. sx={{ m: 4 }}
  114. onClick={() => {
  115. navigate("/publicNotice");
  116. }}
  117. >
  118. <FormattedMessage id="backToNoticePage" />
  119. </Button>
  120. </Typography>
  121. </Grid>
  122. </center>
  123. </Grid>
  124. </Grid>
  125. {/*row 2*/}
  126. </Grid >
  127. )
  128. );
  129. };
  130. export default Index;