Skip to content

Commit 710ed08

Browse files
authored
fix expected prop types in task history list and image marker layer (#2777)
* fix expected prop types in task history list and image marker layer * rerun jobs
1 parent 569f534 commit 710ed08

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/components/EnhancedMap/ImageMarkerLayer/ImageMarkerLayer.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ ImageMarkerLayer.propTypes = {
6666
key: PropTypes.string.isRequired,
6767
url: PropTypes.string.isRequired,
6868
}),
69-
).isRequired,
69+
),
7070
imageClicked: PropTypes.func.isRequired,
7171
markerColor: PropTypes.string,
7272
};

src/components/TaskHistoryList/TaskHistoryList.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ const CommentEntry = ({ entry, props, index }) => {
460460
};
461461

462462
const commentEntry = (entry, props, index) => {
463-
return <CommentEntry entry={entry} props={props} index={index} />;
463+
return <CommentEntry key={index} entry={entry} props={props} index={index} />;
464464
};
465465

466466
const statusEntry = (entry, props) => {
@@ -509,10 +509,10 @@ const ReviewStatusLabel = (props) => (
509509
);
510510

511511
TaskHistoryList.propTypes = {
512-
/** The history to display */
512+
/** The history to display in the task history list */
513513
taskHistory: PropTypes.arrayOf(
514514
PropTypes.shape({
515-
actionType: PropTypes.integer,
515+
actionType: PropTypes.number,
516516
timestamp: PropTypes.string,
517517
comment: PropTypes.string,
518518
}),

0 commit comments

Comments
 (0)