diff --git a/apps/mi-dia/src/pages/MiDiaPage.tsx b/apps/mi-dia/src/pages/MiDiaPage.tsx index 669cf09..b097913 100644 --- a/apps/mi-dia/src/pages/MiDiaPage.tsx +++ b/apps/mi-dia/src/pages/MiDiaPage.tsx @@ -14,10 +14,8 @@ import { ETIQUETA_FASE_ESCRITURACION, ETIQUETA_FASE_OPORTUNIDAD, FASES_APARTADO, - MOTIVOS_NO_COMPRA, ORIGENES_LEAD, SLOTS_DOCS_APARTADO, - SUBCATEGORIAS_NO_COMPRA, componerTelefono, LADAS, textoDiasRestantes, @@ -27,7 +25,6 @@ import { type ClaveLada, type FaseApartado, type LeadMiDia, - type MotivoNoCompra, type OportunidadMiDia, type ResumenMiDia, type SlotDocApartado, @@ -53,7 +50,6 @@ import { getSesion } from '../services/auth' import DashboardVendedor from '../components/DashboardVendedor' import ScoreBadge, { calcularScore } from '../components/ScoreBadge' import KanbanView from '../components/KanbanView' -import TimelineLead, { type EventoLead } from '../components/TimelineLead' import CalendarioCitas from '../components/CalendarioCitas' import DetalleLeadModal from '../components/DetalleLeadModal' @@ -112,209 +108,6 @@ const CLASE_INPUT = const CLASE_LABEL = 'mb-2 block text-xs font-medium text-[#4B5563] dark:text-[#CBD5E1]' -/** Modal genérico de descarte/cancelación con motivo + subcategoría + comentario */ -function ModalDescarteGenerico({ - item, - titulo, - onCancelar, - onConfirmar, - enviando, -}: { - item: { id: string; nombre: string } - titulo: string - onCancelar: () => void - onConfirmar: (motivo: MotivoNoCompra, subcategoria: string | undefined, comentario: string) => void - enviando: boolean -}) { - const [motivo, setMotivo] = useState(MOTIVOS_NO_COMPRA[0]) - const [subcategoria, setSubcategoria] = useState('') - const [comentario, setComentario] = useState('') - const subcategorias = SUBCATEGORIAS_NO_COMPRA[motivo] - return ( -
-
-

{titulo}

-

{item.nombre}

-
{ - e.preventDefault() - onConfirmar(motivo, subcategoria === '' ? undefined : subcategoria, comentario.trim()) - }} - > -
- - -
-
- - -
-
- -