From fa8163fe7a575dbc8356f78e3226f90cddecc6c3 Mon Sep 17 00:00:00 2001 From: Shaun Hamilton <51722130+ShaunSHamilton@users.noreply.github.com> Date: Wed, 17 Feb 2021 15:45:32 +0000 Subject: [PATCH] fix(client): add t to ShowProjectLinks props (#41139) Co-authored-by: Oliver Eyton-Williams --- client/src/components/SolutionViewer/ProjectModal.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/components/SolutionViewer/ProjectModal.js b/client/src/components/SolutionViewer/ProjectModal.js index 7f616e02ae5..1f588c15369 100644 --- a/client/src/components/SolutionViewer/ProjectModal.js +++ b/client/src/components/SolutionViewer/ProjectModal.js @@ -2,6 +2,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import SolutionViewer from './SolutionViewer'; import { Button, Modal } from '@freecodecamp/react-bootstrap'; +import { useTranslation } from 'react-i18next'; const propTypes = { files: PropTypes.arrayOf( @@ -16,8 +17,7 @@ const propTypes = { handleSolutionModalHide: PropTypes.func, isOpen: PropTypes.bool, projectTitle: PropTypes.string, - solution: PropTypes.string, - t: PropTypes.func.isRequired + solution: PropTypes.string }; const ProjectModal = props => { @@ -26,9 +26,9 @@ const ProjectModal = props => { projectTitle, files, solution, - t, handleSolutionModalHide } = props; + const { t } = useTranslation(); return (