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.
 
 

59 lines
1.5 KiB

  1. import PropTypes from 'prop-types';
  2. // material-ui
  3. import { Box, Grid } from '@mui/material';
  4. // project import
  5. const AuthCard = Loadable(lazy(() => import('./AuthCardCustom')));
  6. //import AuthCard from './AuthCardCustom';
  7. // assets
  8. import Loadable from 'components/Loadable';
  9. import { lazy } from 'react';
  10. const AuthBackground = Loadable(lazy(() => import('assets/images/auth/AuthBackground')));
  11. //import AuthBackground from 'assets/images/auth/AuthBackground';
  12. // ==============================|| AUTHENTICATION - WRAPPER ||============================== //
  13. const AuthWrapperCustom = ({ children }) => (
  14. <Box sx={{ minHeight: '60vh' }}>
  15. <AuthBackground />
  16. <Grid
  17. container
  18. direction="column"
  19. justifyContent="center"
  20. alignItems="flex-start"
  21. sx={{
  22. minHeight: '90vh',
  23. }}
  24. >
  25. {/* <Grid item xs={12} sx={{ ml: 3, mt: 3 }}>
  26. <Logo />
  27. </Grid> */}
  28. <Grid item xs={12}>
  29. <Grid
  30. item
  31. xs={12}
  32. container
  33. justifyContent="center"
  34. alignItems="flex-start"
  35. sx={{ minHeight: { xs: 'calc(90vh - 134px)', md: 'calc(90vh - 112px)' }}}
  36. >
  37. <Grid item>
  38. <AuthCard>{children}</AuthCard>
  39. </Grid>
  40. </Grid>
  41. </Grid>
  42. <Grid item xs={12} sx={{ m: 3, mt: 1 }}>
  43. {/* <AuthFooter /> */}
  44. </Grid>
  45. </Grid>
  46. </Box>
  47. );
  48. AuthWrapperCustom.propTypes = {
  49. children: PropTypes.node
  50. };
  51. export default AuthWrapperCustom;