@bytebrand/fe-ui-core 4.2.168 → 4.2.169

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.2.168",
3
+ "version": "4.2.169",
4
4
  "description": "UI components for the auto.de project",
5
5
  "main": "index.ts",
6
6
  "module": "dist/common.js",
@@ -151,8 +151,10 @@ class VehicleDetailedSlider extends Component<IProps, IState> {
151
151
  const prevSlide = (activeSlide - 1 % imagesCount + imagesCount) % imagesCount;
152
152
  const nextSlide = (activeSlide + 1 % imagesCount + imagesCount) % imagesCount;
153
153
 
154
- return photos.map(({ imageUrlLarge, imageUrlSmall }: IImage, index: number) => {
154
+ return photos.map((item: IImage, index: number) => {
155
155
  const showImage = index === currentSlide || index === prevSlide || index === nextSlide || this.imagesCache[index] !== undefined;
156
+ const imageUrlSmall = _get(item, 'imageUrlSmall', null);
157
+ const imageUrlLarge = _get(item, 'imageUrlLarge', null);
156
158
 
157
159
  this.imagesCache[currentSlide] = imageUrlLarge;
158
160
  this.imagesCache[prevSlide] = imageUrlLarge;
@@ -19,7 +19,6 @@ const MIN_PRICE_DIFFERENCE = 500;
19
19
  const EUR = `\u20AC`;
20
20
 
21
21
  const PriceData: React.FunctionComponent<IProps> = ({ t, showNewLabel, historyPriceDifference, historyPriceDifferencePerCent, financingConfig, activeTab }) => {
22
- console.log('financingConfig', financingConfig);
23
22
  const percentageOfFirstInstallment = activeTab === 0 ? financingConfig!.financing.percentageOfFirstInstallment : financingConfig!.leasing.percentageOfFirstInstallment;
24
23
  return (
25
24
  <div className={styles.topWrapper}>
@@ -30,7 +29,7 @@ const PriceData: React.FunctionComponent<IProps> = ({ t, showNewLabel, historyPr
30
29
  {` ${EUR} ${t('slider.save')}`}
31
30
  </Badge>
32
31
  )}
33
- {(!isNil(percentageOfFirstInstallment) && activeTab !== 2) &&
32
+ {(!isNil(percentageOfFirstInstallment) && activeTab !== 2) &&
34
33
  <Badge type='lightBlue' className={styles.percentageOfFirstInstallment}>{`${percentageOfFirstInstallment}${percentageOfFirstInstallment > 0 ? '%' : EUR} ${t('slider.firstInstallment')}`}</Badge>}
35
34
  {historyPriceDifferencePerCent >= MIN_PERCENT && (
36
35
  <Badge type='red' className={styles.priceDifferencePerCent}>