Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

3 лет назад
3 лет назад
3 лет назад
3 лет назад
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. import { Box, Button } from '@mui/material';
  2. import { useTranslation } from 'next-i18next';
  3. import PropType from 'prop-types';
  4. const ButtonGroup = ({ handleBackToCart, handleStripePayment }) => {
  5. const { t } = useTranslation('shipping');
  6. return (
  7. <Box
  8. sx={{
  9. display: 'flex',
  10. mb: 2,
  11. borderRadius: 2,
  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. {t('shipping:back')}
  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. {t('shipping:continue')}
  45. </Button>
  46. </Box>
  47. );
  48. };
  49. ButtonGroup.propTypes = {
  50. handleBackToCart: PropType.func,
  51. handleStripePayment: PropType.func,
  52. };
  53. export default ButtonGroup;