@bytebrand/fe-ui-core 4.0.250 → 4.0.252

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytebrand/fe-ui-core",
3
- "version": "4.0.250",
3
+ "version": "4.0.252",
4
4
  "description": "UI components for the auto.de project",
5
5
  "main": "index.ts",
6
6
  "module": "dist/common.js",
@@ -46,6 +46,7 @@ const VehicleDetailedSidebar: FunctionComponent<IVehicleDetailedSidebarProps> =
46
46
  activeTab,
47
47
  offerBlockOpen,
48
48
  onAdjustRateClick,
49
+ isStrikeShown: price.common.isStrikeShown,
49
50
  ...price
50
51
  };
51
52
 
@@ -173,8 +173,9 @@ export interface IVehicleDetailedSidebarPriceProps {
173
173
  priceTabActiveIndex?: number;
174
174
  onTabPriceSelect?(event: React.ChangeEvent<{}>, index: number): void;
175
175
  isAlternative?: boolean;
176
- currentSalesPrice?: number;
176
+ // currentSalesPrice?: number;
177
177
  originalSalesPrice?: number;
178
+ common: { isStrikeShown?: boolean, currentSalesPrice?: number }
178
179
  }
179
180
  export interface ITabsProps {
180
181
  t?: (key: string, options?: object) => string;
@@ -362,7 +362,7 @@ export const getOfferSliders = (financingConfig: any, t: (key: string, options?:
362
362
  return offerObj.sliders
363
363
  .map((slider: any, index) => {
364
364
  if (componentType === 'checkout' && index === 1 && priceTabIndex === 0) return; // remove checkout annual mileage for financing
365
- if (slider.name === 'firstInstallment') slider.max = offerConfig.firstInstallmentMax || financingConfig.currentSalesPrice;
365
+ if (slider.name === 'firstInstallment') slider.max = offerConfig.firstInstallmentMax || financingConfig.common.currentSalesPrice;
366
366
  slider.value = offerConfig[slider.name];
367
367
  slider.unitName = t(`modals:financing.${slider.unit}`);
368
368
  slider.caption = t(`modals:financing.${slider.name}`);