fix(botones): verde en Aparto (oportunidades) y Firma Cliente (apartados)
- Aparto en Mis oportunidades: botón verde (bg-green-600) - Firma Cliente en Mis apartados: botón verde (bg-green-600) - Los demás botones mantienen su estilo actual
This commit is contained in:
@@ -305,7 +305,9 @@ function FilaOportunidad({
|
|||||||
type="button"
|
type="button"
|
||||||
disabled={enviando}
|
disabled={enviando}
|
||||||
onClick={() => onEtapa(f)}
|
onClick={() => onEtapa(f)}
|
||||||
className={CLASE_BOTON_ACCION}
|
className={f === 'Aparto'
|
||||||
|
? 'rounded-lg bg-green-600 px-3 py-1.5 text-xs font-medium text-white shadow-sm transition-all duration-100 ease-out hover:bg-green-700 disabled:opacity-50'
|
||||||
|
: CLASE_BOTON_ACCION}
|
||||||
>
|
>
|
||||||
{ETIQUETA_FASE_OPORTUNIDAD[f]}
|
{ETIQUETA_FASE_OPORTUNIDAD[f]}
|
||||||
</button>
|
</button>
|
||||||
@@ -378,11 +380,13 @@ function FilaApartado({
|
|||||||
className={
|
className={
|
||||||
fase === 'Cancelacion Apartado'
|
fase === 'Cancelacion Apartado'
|
||||||
? 'rounded-lg border border-red-200 bg-white px-3 py-1.5 text-xs font-medium text-red-600 shadow-sm transition-all duration-100 ease-out hover:bg-red-50 disabled:opacity-50 dark:bg-[#0F172A] dark:border-red-800 dark:text-red-400'
|
? 'rounded-lg border border-red-200 bg-white px-3 py-1.5 text-xs font-medium text-red-600 shadow-sm transition-all duration-100 ease-out hover:bg-red-50 disabled:opacity-50 dark:bg-[#0F172A] dark:border-red-800 dark:text-red-400'
|
||||||
: fase === 'Alta Enkontrol'
|
: fase === 'Firma Cliente'
|
||||||
? 'rounded-lg bg-accent px-3 py-1.5 text-xs font-medium text-white shadow-sm transition-all duration-100 ease-out hover:bg-accent-hover disabled:opacity-50'
|
? 'rounded-lg bg-green-600 px-3 py-1.5 text-xs font-medium text-white shadow-sm transition-all duration-100 ease-out hover:bg-green-700 disabled:opacity-50'
|
||||||
: fase === apartado.estado
|
: fase === 'Alta Enkontrol'
|
||||||
? 'rounded-lg border border-accent bg-accent/5 px-3 py-1.5 text-xs font-medium text-accent shadow-sm disabled:opacity-50'
|
? 'rounded-lg bg-accent px-3 py-1.5 text-xs font-medium text-white shadow-sm transition-all duration-100 ease-out hover:bg-accent-hover disabled:opacity-50'
|
||||||
: CLASE_BOTON_ACCION
|
: fase === apartado.estado
|
||||||
|
? 'rounded-lg border border-accent bg-accent/5 px-3 py-1.5 text-xs font-medium text-accent shadow-sm disabled:opacity-50'
|
||||||
|
: CLASE_BOTON_ACCION
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
{fase === 'Alta Enkontrol' ? 'Alta Enkontrol →' : ETIQUETA_FASE_APARTADO[fase]}
|
{fase === 'Alta Enkontrol' ? 'Alta Enkontrol →' : ETIQUETA_FASE_APARTADO[fase]}
|
||||||
|
|||||||
Reference in New Issue
Block a user