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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. import { Box, Button } from '@mui/material';
  2. import PropType from 'prop-types';
  3. const ButtonGroup = ({ handleBackToCart, handleStripePayment }) => {
  4. return (
  5. <Box
  6. sx={{
  7. display: 'flex',
  8. ml: 12,
  9. mb: 2,
  10. borderRadius: 2,
  11. p: 1,
  12. }}
  13. >
  14. <Button
  15. variant="contained"
  16. sx={{
  17. mt: 3,
  18. mb: 2,
  19. height: 50,
  20. width: 150,
  21. textTransform: 'none',
  22. backgroundColor: 'primary.main',
  23. color: 'white',
  24. mr: 2,
  25. }}
  26. onClick={handleBackToCart}
  27. >
  28. Back to cart
  29. </Button>
  30. <Button
  31. type="submit"
  32. variant="contained"
  33. sx={{
  34. mt: 3,
  35. mb: 2,
  36. backgroundColor: '#CBA213',
  37. height: 50,
  38. width: 200,
  39. textTransform: 'none',
  40. color: 'white',
  41. }}
  42. onClick={handleStripePayment}
  43. >
  44. Continue to payment
  45. </Button>
  46. </Box>
  47. );
  48. };
  49. ButtonGroup.propTypes = {
  50. handleBackToCart: PropType.func,
  51. handleStripePayment: PropType.func,
  52. };
  53. export default ButtonGroup;