diff --git a/src/components/dv/CallDetail.tsx b/src/components/dv/CallDetail.tsx index 91fc939..2f57b2f 100644 --- a/src/components/dv/CallDetail.tsx +++ b/src/components/dv/CallDetail.tsx @@ -12,7 +12,6 @@ import { Edit3, MapPin, Clock, - CheckCircle2, Phone, Mail, Truck, @@ -347,7 +346,6 @@ export function CallDetail({ const storeStatus = String(rowSrc.store_status || data?.store_status || 'No data'); const channel = String(rowSrc.order_received_channel || rowSrc.channel || data?.order_received_channel || 'No data'); - const geoLocation = String(selectStore.store_location ? (typeof selectStore.store_location === 'string' ? selectStore.store_location : `${selectStore.store_location.latitude}, ${selectStore.store_location.longitude}`) : 'No data'); const storeNotes = selectStore.notes || 'No notes available.'; const currentStateName = String(rowSrc.current_state_name || data?.current_state_name || 'No data'); diff --git a/src/components/dv/OrderDetail.tsx b/src/components/dv/OrderDetail.tsx index a747b14..448e14e 100644 --- a/src/components/dv/OrderDetail.tsx +++ b/src/components/dv/OrderDetail.tsx @@ -4,7 +4,7 @@ import { ORDER_BOOKING } from '../../api/config'; import { Card } from '../reusable/Card'; import { Spinner } from '../reusable/Spinner'; import { EmptyState } from '../reusable/EmptyState'; -import { Store, User, Package, Calendar, Hash, Mail, FileText, Weight, List, MapPin } from 'lucide-react'; +import { Store, User, Package, Calendar, Hash, Mail, Weight, List, MapPin } from 'lucide-react'; export interface WiredDetailViewProps { instanceId: number | string; diff --git a/src/components/forms/fields/GeolocationInput.tsx b/src/components/forms/fields/GeolocationInput.tsx index d753643..71eafbe 100644 --- a/src/components/forms/fields/GeolocationInput.tsx +++ b/src/components/forms/fields/GeolocationInput.tsx @@ -47,9 +47,6 @@ export function GeolocationInput({ } }, [value]); - const mapCenter = value - ? new L.LatLng(value.latitude, value.longitude) - : new L.LatLng(20.5937, 78.9629); // Default to India roughly if no location return (
diff --git a/src/screens/CallsPage.tsx b/src/screens/CallsPage.tsx index 3094694..3af2529 100644 --- a/src/screens/CallsPage.tsx +++ b/src/screens/CallsPage.tsx @@ -4,7 +4,7 @@ import { CallsView } from '../components/rv'; import { CallDetail } from '../components/dv'; import { useEffect, useState } from 'react'; import { Button } from '../components/buttons/Button'; -import { Plus, ArrowLeft } from 'lucide-react'; +import { Plus } from 'lucide-react'; import { DynamicForm } from '../components/forms/DynamicForm'; import { ORDER_BOOKING } from '../api/config'; import { orderBookingClient } from '../api/clients';