diff options
Diffstat (limited to 'client/src/components/SubmitButton/SubmitButton.jsx')
-rw-r--r-- | client/src/components/SubmitButton/SubmitButton.jsx | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/client/src/components/SubmitButton/SubmitButton.jsx b/client/src/components/SubmitButton/SubmitButton.jsx index df1269f..230f973 100644 --- a/client/src/components/SubmitButton/SubmitButton.jsx +++ b/client/src/components/SubmitButton/SubmitButton.jsx @@ -1,8 +1,10 @@ import React from 'react' import styles from './SubmitButton.module.css' import { Typography } from '@mui/material' +import { useTranslation } from 'react-i18next' const SubmitButton = ({ onClick, onChange, disabled }) => { + const { t } = useTranslation() return ( <> <button @@ -13,12 +15,12 @@ const SubmitButton = ({ onClick, onChange, disabled }) => { disabled={disabled} > <div className={styles.submit__content}> - <Typography sx={{ fontSize: '1.5rem', fontWeight: 'bolder', margin: '10px', color: '#323c7a' }}>Save & Next</Typography> - <img - className={styles.submit__image} - src={`${process.env.PUBLIC_URL}/assets/images/next_icon.svg`} - alt="" - /> + <Typography sx={{ fontSize: '1.5rem', fontWeight: 'bolder', margin: '10px', color: '#323c7a' }}>{t('SAVE_&_NEXT')}</Typography> + <img + className={styles.submit__image} + src={`${process.env.PUBLIC_URL}/assets/images/next_icon.svg`} + alt="" + /> </div> </button> </> |