diff options
author | Blaster4385 <[email protected]> | 2022-08-26 14:56:04 +0530 |
---|---|---|
committer | Blaster4385 <[email protected]> | 2022-08-26 14:56:04 +0530 |
commit | af0f6f7aee64d3a018e74c43e051155b06ad2816 (patch) | |
tree | c8128db5c18d683293a16853528aece994432b2a /client/src/components/BackButton | |
parent | ff49257ecbebd31656e2a0081f631cfcf4e59db8 (diff) |
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> </> |