Skip to content

Commit

Permalink
change path for translator in Repls
Browse files Browse the repository at this point in the history
  • Loading branch information
VictoryPashkova committed Jun 15, 2024
1 parent 3a33e39 commit 0d01e0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/Repls/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import routes from '../../routes.js';
export const Repls = () => {
const dispatch = useDispatch();
const navigate = useNavigate();
const { t } = useTranslation();
const { t: tP } = useTranslation('translation', { keyPrefix: 'profile' });

const openTerminal = (code) => () => {
dispatch(actions.setCodeAndSavedCode(code)); // далее роутинг на App
Expand All @@ -27,7 +27,7 @@ export const Repls = () => {
<Card.Body>
<Card.Text>{img}</Card.Text>
<Button onClick={openTerminal(code)} variant="primary">
{t('profile.openReplButton')}
{tP('openReplButton')}
</Button>
</Card.Body>
</Card>
Expand Down

0 comments on commit 0d01e0a

Please sign in to comment.