diff options
author | Rohan Raj Gupta <[email protected]> | 2022-08-26 15:33:02 +0530 |
---|---|---|
committer | GitHub <[email protected]> | 2022-08-26 15:33:02 +0530 |
commit | 9ecf990db43598e79b0a117e4bb5288ab6b26785 (patch) | |
tree | 3ee863ede9f7bcdb118b2de65004b13d8169d208 /client/src/components/BackButton | |
parent | 38f0cc2204842392d706b877cfe7f8d5ed9f792c (diff) | |
parent | 7d990a31787716b2f02a7a86d19e6e4be4881053 (diff) |
Merge pull request #21 from Blaster4385/develop
Yo Man
Diffstat (limited to 'client/src/components/BackButton')
-rw-r--r-- | client/src/components/BackButton/BackButton.jsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/client/src/components/BackButton/BackButton.jsx b/client/src/components/BackButton/BackButton.jsx index fdb85f1..c6bba82 100644 --- a/client/src/components/BackButton/BackButton.jsx +++ b/client/src/components/BackButton/BackButton.jsx @@ -1,8 +1,10 @@ import { Typography } from '@mui/material' import React from 'react' import styles from './BackButton.module.css' +import { useTranslation } from 'react-i18next' const BackButton = ({ onClick, onChange }) => { + const { t } = useTranslation() return ( <> <button @@ -17,7 +19,7 @@ const BackButton = ({ onClick, onChange }) => { src={`${process.env.PUBLIC_URL}/assets/images/back.svg`} alt="" /> - <Typography sx={{ fontSize: '1.5rem', fontWeight: 'bolder', margin: '10px', color: '#323c7a' }}>Back</Typography> + <Typography sx={{ fontSize: '1.5rem', fontWeight: 'bolder', margin: '10px', color: '#323c7a' }}>{t('BACK')}</Typography> </div> </button> </> |