Skip to content

Commit 7d15622

Browse files
committed
Attempt to resolve build test failure
1 parent 25f2e4c commit 7d15622

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

web-ui/src/components/view_feedback_responses/feedback_response_card/FeedbackResponseCard.jsx

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react';
1+
import React, { useContext } from 'react';
22
import PropTypes from 'prop-types';
33
import Card from '@mui/material/Card';
44
import CardContent from '@mui/material/CardContent';
@@ -11,13 +11,6 @@ import Avatar from '@mui/material/Avatar';
1111
import { getAvatarURL } from '../../../api/api.js';
1212
import FeedbackAnswerInput from '../../feedback_answer_input/FeedbackAnswerInput';
1313

14-
const propTypes = {
15-
responderId: PropTypes.string.isRequired,
16-
answer: PropTypes.string, // Allow answer to be null or undefined
17-
inputType: PropTypes.string.isRequired,
18-
sentiment: PropTypes.number
19-
};
20-
2114
const FeedbackResponseCard = props => {
2215
const { state } = useContext(AppContext);
2316
const userInfo = selectProfile(state, props.responderId);
@@ -59,10 +52,10 @@ const FeedbackResponseCard = props => {
5952

6053
FeedbackResponseCard.propTypes = {
6154
responderId: PropTypes.string.isRequired,
62-
answer: PropTypes.string.isRequired,
55+
answer: PropTypes.string,
6356
inputType: PropTypes.string.isRequired,
6457
sentiment: PropTypes.number,
65-
handleDenyClick: PropTypes.func.isRequired
58+
handleDenyClick: PropTypes.func
6659
};
6760

6861
export default FeedbackResponseCard;

0 commit comments

Comments
 (0)