From 813cf1dd493a40de1fd8703e4fd6859307445ee8 Mon Sep 17 00:00:00 2001 From: Sibtain Ali Date: Tue, 29 Aug 2023 01:37:17 +0500 Subject: [PATCH] fix: lint error for recent waypoints --- src/pages/iou/WaypointEditor.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/pages/iou/WaypointEditor.js b/src/pages/iou/WaypointEditor.js index 7be73144f0fb..0db468b15138 100644 --- a/src/pages/iou/WaypointEditor.js +++ b/src/pages/iou/WaypointEditor.js @@ -37,6 +37,25 @@ const propTypes = { }), }), + recentWaypoints: PropTypes.arrayOf( + PropTypes.shape({ + /** A description of the location (usually the address) */ + description: PropTypes.string, + + /** Data required by the google auto complete plugin to know where to put the markers on the map */ + geometry: PropTypes.shape({ + /** Data about the location */ + location: PropTypes.shape({ + /** Lattitude of the location */ + lat: PropTypes.number, + + /** Longitude of the location */ + lng: PropTypes.number, + }), + }), + }), + ), + /** The optimistic transaction for this request */ transaction: transactionPropTypes, }; @@ -47,6 +66,7 @@ const defaultProps = { waypointIndex: '', }, }, + recentWaypoints: [], transaction: {}, };