From ee491d042c12c6747c41cac67623e3d115676189 Mon Sep 17 00:00:00 2001 From: rayane-djouah <77965000+rayane-djouah@users.noreply.github.com> Date: Sun, 7 Jan 2024 21:33:22 +0100 Subject: [PATCH] Fix lint errors --- src/components/ConfirmedRoute.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/ConfirmedRoute.tsx b/src/components/ConfirmedRoute.tsx index e4fbfe540cfe..05d6557a72e3 100644 --- a/src/components/ConfirmedRoute.tsx +++ b/src/components/ConfirmedRoute.tsx @@ -1,4 +1,5 @@ -import React, {ReactNode, useCallback, useEffect} from 'react'; +import React, {useCallback, useEffect} from 'react'; +import type {ReactNode} from 'react'; import {withOnyx} from 'react-native-onyx'; import type {OnyxEntry} from 'react-native-onyx/lib/types'; import useNetwork from '@hooks/useNetwork'; @@ -97,7 +98,7 @@ function ConfirmedRoute({mapboxAccessToken, transaction}: ConfirmedRouteProps) { zoom: CONST.MAPBOX.DEFAULT_ZOOM, location: waypointMarkers?.[0]?.coordinate ?? (CONST.MAPBOX.DEFAULT_COORDINATE as [number, number]), }} - directionCoordinates={coordinates as [number, number][]} + directionCoordinates={coordinates as Array<[number, number]>} style={[styles.mapView, styles.br4]} waypoints={waypointMarkers} styleURL={CONST.MAPBOX.STYLE_URL}