summaryrefslogtreecommitdiff
path: root/client/src/components/BackButton/BackButton.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/components/BackButton/BackButton.jsx')
-rw-r--r--client/src/components/BackButton/BackButton.jsx4
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>
</>