Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

122 rader
5.0 KiB

  1. // import { useFormik } from 'formik';
  2. // import * as yup from 'yup';
  3. import * as React from "react";
  4. // import * as HttpUtils from "utils/HttpUtils";
  5. // import * as UrlUtils from "utils/ApiPathConst";
  6. // import { useNavigate } from "react-router-dom";
  7. // import { useDispatch } from "react-redux";
  8. // import { handleLogoutFunction, handleLogin} from 'auth/index';
  9. // import useJwt from "auth/jwt/useJwt";
  10. import {
  11. Grid,
  12. Typography,
  13. Button,
  14. // RadioGroup,
  15. // Dialog, DialogTitle, DialogContent, DialogActions,
  16. Stack,
  17. // InputLabel,
  18. // OutlinedInput,
  19. // FormHelperText,
  20. // TextField,
  21. // IconButton, InputAdornment,
  22. // Box,
  23. // FormControl
  24. } from '@mui/material';
  25. import Loadable from 'components/Loadable';
  26. const LoadingComponent = Loadable(React.lazy(() => import('pages/extra-pages/LoadingComponent')));
  27. import titleBackgroundImg from 'assets/images/dashboard/gazette-bar.png'
  28. // import ForwardIcon from '@mui/icons-material/Forward';
  29. import MainCard from 'components/MainCard';
  30. // import {PNSPS_LONG_BUTTON_THEME} from "themes/buttonConst";
  31. // import {ThemeProvider} from "@emotion/react";
  32. import {FormattedMessage,
  33. // useIntl
  34. } from "react-intl";
  35. // import { EyeInvisibleOutlined, EyeOutlined } from '@ant-design/icons';
  36. // import axios from 'axios';
  37. import {
  38. // useParams,
  39. Link
  40. } from 'react-router-dom';
  41. import CheckCircleOutlineIcon from '@mui/icons-material/CheckCircleOutline';
  42. // import LocaleContext from "components/I18nProvider";
  43. // ==============================|| DASHBOARD - DEFAULT ||============================== //
  44. const ResetPasswordSuccess = () => {
  45. const [isLoading, setLoding] = React.useState(true);
  46. React.useEffect(() => {
  47. setLoding(false)
  48. }, []);
  49. const BackgroundHead = {
  50. backgroundImage: `url(${titleBackgroundImg})`,
  51. width: 'auto',
  52. height: 'auto',
  53. backgroundSize: 'contain',
  54. backgroundRepeat: 'no-repeat',
  55. backgroundColor: '#0C489E',
  56. backgroundPosition: 'right'
  57. }
  58. return (
  59. isLoading ?
  60. <Grid container sx={{ minHeight: '87vh', mb: 3 }} direction="column" justifyContent="center" alignItems="center">
  61. <Grid item>
  62. <LoadingComponent />
  63. </Grid>
  64. </Grid>
  65. :
  66. <Grid container sx={{ minHeight: '87vh', mb: 3 }} direction="column" alignItems="center">
  67. <Grid item xs={12} md={12} width="100%" >
  68. <div style={BackgroundHead}>
  69. <Stack direction="row" height='70px' justifyContent="flex-start" alignItems="center">
  70. <Typography ml={15} color='#FFF' variant="h4" sx={{display: { xs: 'none', sm: 'none', md: 'block' }}}>
  71. <FormattedMessage id="forgotUserPassword"/>
  72. </Typography>
  73. </Stack>
  74. </div>
  75. </Grid>
  76. <Grid item xs={12} md={12} width={{sx:"90%", sm:"90%",md: "60%", xs: "90%"}}>
  77. <MainCard
  78. sx={{
  79. maxWidth: { xs: 400, sm:730, md:800, lg: 1000 },
  80. margin: { sm: 0, md: 3 },
  81. '& > *': {
  82. flexGrow: 1,
  83. flexBasis: '50%'
  84. }
  85. }}
  86. content={false}
  87. border={false}
  88. boxShadow
  89. >
  90. <Grid container spacing={4} sx={{ minHeight: {xs:"80vh", sm:"70vh", md: "70vh", lg:"70vh", xl:"50vh"} }} direction="column" justifyContent="flex-start" alignItems="center">
  91. <Grid item xs={12} md={12} lg={12} sx={{ mb: 1, mt:5, }}>
  92. {/* <Button disabled={true} hidden={true} variant="contained" type="submit" sx={{ fontSize: 12,height:'25px'}}>Submit</Button> */}
  93. <CheckCircleOutlineIcon color="success" sx={{ width: "200px", height: "200px" }} />
  94. </Grid>
  95. <Grid item xs={12} md={12} lg={12} sx={{ mb: 1, mt:5,}}>
  96. <Typography display="inline" variant="h4">
  97. <FormattedMessage id="resetPasswordSuccess"/>
  98. </Typography>
  99. </Grid>
  100. <Grid item xs={12} md={12} lg={12} sx={{ mb: 1, mt:5,}}>
  101. <Button color="success" variant="outlined" component={Link} to="/login">
  102. <Typography variant="h5">
  103. <FormattedMessage id="backToLogin"/>
  104. </Typography>
  105. </Button>
  106. </Grid>
  107. </Grid>
  108. </MainCard>
  109. </Grid>
  110. </Grid>
  111. );
  112. };
  113. export default ResetPasswordSuccess;