Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import { Grid, Typography } from '@mui/material';
  2. import { Box } from '@mui/system';
  3. import OrderCard from '../cards/order-card/OrderCard';
  4. import ShippingDetailsForm from '../forms/shipping-details/ShippingDetailsForm';
  5. const ProfileContent = () => {
  6. return (
  7. <Grid container spacing={2} sx={{ py: 10, height: '100%', width: '100%' }}>
  8. <Grid item xs={12}>
  9. <Typography
  10. variant="h3"
  11. sx={{ pl: 12, mt: 12, height: '100%', color: 'primary.main' }}
  12. >
  13. Welcome to your user account
  14. </Typography>
  15. </Grid>
  16. <Grid item xs={8} sx={{ mt: 4 }}>
  17. <Typography sx={{ pl: 12, fontSize: 20 }}>
  18. Save details for later
  19. </Typography>
  20. </Grid>
  21. <Grid item xs={4} sx={{ mt: 4 }}>
  22. <Typography sx={{ fontSize: 20 }}>Previous Orders</Typography>
  23. </Grid>
  24. <Grid item xs={8}>
  25. <ShippingDetailsForm></ShippingDetailsForm>
  26. </Grid>
  27. <Grid item xs={4}>
  28. <Box sx={{ width: '60%', mt: 2 }}>
  29. <OrderCard
  30. data={{ date: '2022-09-02', name: 'John Doe', totalPrice: 30 }}
  31. ></OrderCard>
  32. <OrderCard
  33. data={{ date: '2022-09-02', name: 'John Doe', totalPrice: 30 }}
  34. ></OrderCard>
  35. <OrderCard
  36. data={{ date: '2022-09-02', name: 'John Doe', totalPrice: 30 }}
  37. ></OrderCard>
  38. </Box>
  39. </Grid>
  40. </Grid>
  41. );
  42. };
  43. export default ProfileContent;