cleanup: remove tenant variant logic and enforce config-driven UI
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<div [class]="isMarketplaceNovo ? 'cart-container novo' : 'cart-container dexar'">
|
||||
<div class="cart-container dexar">
|
||||
<div class="cart-header">
|
||||
<h1>{{ 'cart.title' | translate }}</h1>
|
||||
@if (itemCount() > 0) {
|
||||
|
||||
@@ -15,7 +15,6 @@ import { LangRoutePipe } from '../../pipes/lang-route.pipe';
|
||||
import { TranslatePipe } from '../../i18n/translate.pipe';
|
||||
import { TranslateService } from '../../i18n/translate.service';
|
||||
import { PAYMENT_POLL_INTERVAL_MS, PAYMENT_MAX_CHECKS, PAYMENT_TIMEOUT_CLOSE_MS, LINK_COPIED_DURATION_MS } from '../../config/constants';
|
||||
import { UiRuntimeFacade } from '../../facades/runtime/ui-runtime.facade';
|
||||
|
||||
type PaymentMethod = 'qr' | 'card';
|
||||
|
||||
@@ -35,14 +34,9 @@ export class CartComponent implements OnDestroy {
|
||||
hasDeliveryPrice;
|
||||
allRequiredDeliveriesSelected;
|
||||
termsAccepted = false;
|
||||
private readonly uiRuntime = inject(UiRuntimeFacade);
|
||||
|
||||
private i18n = inject(TranslateService);
|
||||
private authService = inject(AuthService);
|
||||
|
||||
get isMarketplaceNovo(): boolean {
|
||||
return this.uiRuntime.isMarketplaceVariant('novo');
|
||||
}
|
||||
|
||||
isAuthenticated = this.authService.isAuthenticated;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user