You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

91 lines
3.6 KiB

  1. // material-ui
  2. import {
  3. Grid,
  4. Typography,
  5. Stack,
  6. Button,
  7. } from '@mui/material';
  8. import { useNavigate } from "react-router-dom";
  9. import titleBackgroundImg from 'assets/images/dashboard/gazette-bar.png'
  10. import { FormattedMessage } from "react-intl";
  11. const BackgroundHead = {
  12. backgroundImage: `url(${titleBackgroundImg})`,
  13. width: '100%',
  14. height: '100%',
  15. backgroundSize: 'contain',
  16. backgroundRepeat: 'no-repeat',
  17. backgroundColor: '#0C489E',
  18. backgroundPosition: 'right'
  19. }
  20. // ==============================|| DASHBOARD - DEFAULT ||============================== //
  21. const Index = ({ record }) => {
  22. const navigate = useNavigate()
  23. return (
  24. (
  25. <Grid container sx={{ minHeight: '110vh', backgroundColor: '#fff' }} direction="column" justifyContent="flex-start" alignItems="center" >
  26. <Grid item xs={12} width="100%">
  27. <div style={BackgroundHead} width="100%" >
  28. <Stack direction="row" height='70px' >
  29. <Typography ml={15} color='#FFF' variant="h4" sx={{ display: { xs: 'none', sm: 'none', md: 'block' }, pt: 2 }} >
  30. <FormattedMessage id="proofRecord" />
  31. </Typography>
  32. </Stack>
  33. </div>
  34. </Grid>
  35. {/*row 1*/}
  36. <Grid item xs={12} md={12} >
  37. <Grid container justifyContent="flex-start" alignItems="center" >
  38. <center>
  39. <Grid item xs={12} md={8} >
  40. <Typography variant="h2" sx={{ textAlign: "left", ml: 4, mr: 4, mt: 4, borderBottom: "1px solid black" }}>
  41. <FormattedMessage id="publicNoticePaymentProofDone" />
  42. </Typography>
  43. <Typography variant="h3" sx={{ ml: 8, mt: 4, mr: 8, textAlign: "left" }}>
  44. <FormattedMessage
  45. id='MSG.pay_credity1'
  46. values={{
  47. appNo: record?.appNo,
  48. year: record?.issueYear,
  49. issueVolume: record?.issueVolume,
  50. issueNo: record?.issueNo
  51. }}
  52. />
  53. <br /><br />
  54. <FormattedMessage id="MSG.pay_credity2" />
  55. </Typography>
  56. <Typography variant="h3" sx={{ ml: 8, mt: 4, mr: 8, textAlign: "center" }}>
  57. <Button
  58. component="span"
  59. variant="contained"
  60. size="large"
  61. sx={{ m: 4 }}
  62. onClick={() => {
  63. navigate("/publicNotice");
  64. }}
  65. >
  66. <FormattedMessage id="backToNoticePage" />
  67. </Button>
  68. </Typography>
  69. </Grid>
  70. </center>
  71. </Grid>
  72. </Grid>
  73. {/*row 2*/}
  74. </Grid >
  75. )
  76. );
  77. };
  78. export default Index;