Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

69 righe
2.6 KiB

  1. // material-ui
  2. import {
  3. Grid,
  4. Typography,
  5. Button
  6. } from '@mui/material';
  7. import * as React from "react";
  8. import { useNavigate } from "react-router-dom";
  9. import { FormattedMessage } from "react-intl";
  10. import Loadable from 'components/Loadable';
  11. const LoadingComponent = Loadable(React.lazy(() => import('pages/extra-pages/LoadingComponent')));
  12. // ==============================|| DASHBOARD - DEFAULT ||============================== //
  13. const Index = () => {
  14. const navigate = useNavigate()
  15. const [onReady, setOnReady] = React.useState(false);
  16. React.useEffect(() => {
  17. setOnReady(true);
  18. }, []);
  19. return (
  20. !onReady ?
  21. <Grid container sx={{ minHeight: '87vh', mb: 3 }} direction="column" justifyContent="center" alignItems="center">
  22. <Grid item>
  23. <LoadingComponent />
  24. </Grid>
  25. </Grid>
  26. :
  27. <Grid container sx={{ height: '100%', backgroundColor: '#fff' }} direction="column" justifyContent="flex-start" alignItems="center" >
  28. <Grid item xs={12} md={12} >
  29. <Grid container justifyContent="flex-start" alignItems="center" >
  30. <center>
  31. <Grid item xs={12} md={12} >
  32. <Typography variant="h3" sx={{ ml: 8, mt: 4, mr: 8, textAlign: "center" }}>
  33. <FormattedMessage id="loginErrorMessage3" />
  34. </Typography>
  35. </Grid>
  36. <Grid item xs={12} md={12} >
  37. <Typography variant="h3" sx={{ ml: 8, mt: 4, mr: 8, textAlign: "center" }}>
  38. <FormattedMessage id="sentSecurityCode2" />
  39. </Typography>
  40. </Grid>
  41. <Grid item xs={12} md={12} >
  42. <Button
  43. component="span"
  44. variant="contained"
  45. size="large"
  46. sx={{ m: 4 }}
  47. onClick={() => {
  48. navigate("/login");
  49. }}
  50. ><FormattedMessage id="backToLogin" /></Button>
  51. </Grid>
  52. </center>
  53. </Grid>
  54. </Grid>
  55. {/*row 2*/}
  56. </Grid >
  57. );
  58. };
  59. export default Index;