refactor(cart): remove cart showcase component and related functionality
This commit is contained in:
@@ -455,38 +455,6 @@
|
||||
}
|
||||
</div>
|
||||
|
||||
<div class="cart-showcase mt-4">
|
||||
<div class="cart-showcase__header">
|
||||
<div>
|
||||
<h2>Cart copia</h2>
|
||||
<p class="text-muted mb-0">
|
||||
Copia aislada del carrito actual para iterar el rediseño sin tocar el componente productivo.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@if (!cartCopiaVisible) {
|
||||
<app-button variant="secondary" (click)="showCartCopia()">
|
||||
Volver a mostrar cart copia
|
||||
</app-button>
|
||||
}
|
||||
</div>
|
||||
|
||||
@if (cartCopiaVisible) {
|
||||
<div class="cart-showcase__viewport">
|
||||
<app-cart-copia
|
||||
[showClose]="true"
|
||||
[items]="cartMockItems"
|
||||
[subtotal]="366000"
|
||||
[discount]="66000"
|
||||
[total]="300000"
|
||||
[backgroundColor]="cartBackgroundColor"
|
||||
(secondaryAction)="hideCartCopia()"
|
||||
(primaryAction)="triggerCartCopiaCheckout()"
|
||||
(closed)="hideCartCopia()"
|
||||
></app-cart-copia>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@@ -685,3 +653,4 @@
|
||||
</div>
|
||||
</app-store-section>
|
||||
</main>
|
||||
|
||||
|
||||
@@ -163,18 +163,6 @@ export class ReutilizablesTestPageComponent {
|
||||
this.toastService.info('Se disparo el evento de cerrado del carrito mock.');
|
||||
}
|
||||
|
||||
protected showCartCopia(): void {
|
||||
this.cartCopiaVisible = true;
|
||||
}
|
||||
|
||||
protected hideCartCopia(): void {
|
||||
this.cartCopiaVisible = false;
|
||||
this.toastService.info('Se disparo el evento de cerrado del cart-copia mock.');
|
||||
}
|
||||
|
||||
protected triggerCartCopiaCheckout(): void {
|
||||
this.toastService.success('Se disparo la accion de compra del cart-copia mock.');
|
||||
}
|
||||
|
||||
protected triggerToast(type: 'success' | 'danger' | 'info'): void {
|
||||
if (type === 'success') {
|
||||
@@ -273,3 +261,4 @@ export class ReutilizablesTestPageComponent {
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user