build error fixed
This commit is contained in:
parent
265cde7f8c
commit
2c26f174b0
@ -12,7 +12,6 @@ import {
|
|||||||
Edit3,
|
Edit3,
|
||||||
MapPin,
|
MapPin,
|
||||||
Clock,
|
Clock,
|
||||||
CheckCircle2,
|
|
||||||
Phone,
|
Phone,
|
||||||
Mail,
|
Mail,
|
||||||
Truck,
|
Truck,
|
||||||
@ -347,7 +346,6 @@ export function CallDetail({
|
|||||||
const storeStatus = String(rowSrc.store_status || data?.store_status || 'No data');
|
const storeStatus = String(rowSrc.store_status || data?.store_status || 'No data');
|
||||||
const channel = String(rowSrc.order_received_channel
|
const channel = String(rowSrc.order_received_channel
|
||||||
|| rowSrc.channel || data?.order_received_channel || 'No data');
|
|| 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 storeNotes = selectStore.notes || 'No notes available.';
|
||||||
const currentStateName = String(rowSrc.current_state_name || data?.current_state_name || 'No data');
|
const currentStateName = String(rowSrc.current_state_name || data?.current_state_name || 'No data');
|
||||||
|
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import { ORDER_BOOKING } from '../../api/config';
|
|||||||
import { Card } from '../reusable/Card';
|
import { Card } from '../reusable/Card';
|
||||||
import { Spinner } from '../reusable/Spinner';
|
import { Spinner } from '../reusable/Spinner';
|
||||||
import { EmptyState } from '../reusable/EmptyState';
|
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 {
|
export interface WiredDetailViewProps {
|
||||||
instanceId: number | string;
|
instanceId: number | string;
|
||||||
|
|||||||
@ -47,9 +47,6 @@ export function GeolocationInput({
|
|||||||
}
|
}
|
||||||
}, [value]);
|
}, [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 (
|
return (
|
||||||
<div className="flex flex-col gap-2 font-sans w-full">
|
<div className="flex flex-col gap-2 font-sans w-full">
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import { CallsView } from '../components/rv';
|
|||||||
import { CallDetail } from '../components/dv';
|
import { CallDetail } from '../components/dv';
|
||||||
import { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
import { Button } from '../components/buttons/Button';
|
import { Button } from '../components/buttons/Button';
|
||||||
import { Plus, ArrowLeft } from 'lucide-react';
|
import { Plus } from 'lucide-react';
|
||||||
import { DynamicForm } from '../components/forms/DynamicForm';
|
import { DynamicForm } from '../components/forms/DynamicForm';
|
||||||
import { ORDER_BOOKING } from '../api/config';
|
import { ORDER_BOOKING } from '../api/config';
|
||||||
import { orderBookingClient } from '../api/clients';
|
import { orderBookingClient } from '../api/clients';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user