fix(client): add t to ShowProjectLinks props (#41139)

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
pull/41152/head
Shaun Hamilton 2021-02-17 15:45:32 +00:00 committed by GitHub
parent 29586e7082
commit fa8163fe7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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 (
<Modal
aria-labelledby='solution-viewer-modal-title'