fix(client): add t to ShowProjectLinks props (#41139)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
This commit is contained in:
@ -2,6 +2,7 @@ import React from 'react';
|
|||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import SolutionViewer from './SolutionViewer';
|
import SolutionViewer from './SolutionViewer';
|
||||||
import { Button, Modal } from '@freecodecamp/react-bootstrap';
|
import { Button, Modal } from '@freecodecamp/react-bootstrap';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
const propTypes = {
|
const propTypes = {
|
||||||
files: PropTypes.arrayOf(
|
files: PropTypes.arrayOf(
|
||||||
@ -16,8 +17,7 @@ const propTypes = {
|
|||||||
handleSolutionModalHide: PropTypes.func,
|
handleSolutionModalHide: PropTypes.func,
|
||||||
isOpen: PropTypes.bool,
|
isOpen: PropTypes.bool,
|
||||||
projectTitle: PropTypes.string,
|
projectTitle: PropTypes.string,
|
||||||
solution: PropTypes.string,
|
solution: PropTypes.string
|
||||||
t: PropTypes.func.isRequired
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const ProjectModal = props => {
|
const ProjectModal = props => {
|
||||||
@ -26,9 +26,9 @@ const ProjectModal = props => {
|
|||||||
projectTitle,
|
projectTitle,
|
||||||
files,
|
files,
|
||||||
solution,
|
solution,
|
||||||
t,
|
|
||||||
handleSolutionModalHide
|
handleSolutionModalHide
|
||||||
} = props;
|
} = props;
|
||||||
|
const { t } = useTranslation();
|
||||||
return (
|
return (
|
||||||
<Modal
|
<Modal
|
||||||
aria-labelledby='solution-viewer-modal-title'
|
aria-labelledby='solution-viewer-modal-title'
|
||||||
|
Reference in New Issue
Block a user