@bytebrand/fe-ui-core 4.2.187 → 4.2.188
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
|
@@ -37,7 +37,6 @@ interface IProps {
|
|
|
37
37
|
showModal?: (id: string, props?: any) => void;
|
|
38
38
|
hideModal: (id: string) => void;
|
|
39
39
|
onCarFavorite: (event: MouseEvent<HTMLElement>) => void;
|
|
40
|
-
showDownPayment:boolean;
|
|
41
40
|
}
|
|
42
41
|
|
|
43
42
|
interface IState {
|
|
@@ -240,7 +239,6 @@ class VehicleDetailedSlider extends Component<IProps, IState> {
|
|
|
240
239
|
showNewLabel,
|
|
241
240
|
make,
|
|
242
241
|
model,
|
|
243
|
-
showDownPayment,
|
|
244
242
|
subModel,
|
|
245
243
|
powerKW,
|
|
246
244
|
powerPS,
|
|
@@ -269,7 +267,6 @@ class VehicleDetailedSlider extends Component<IProps, IState> {
|
|
|
269
267
|
t,
|
|
270
268
|
financingConfig,
|
|
271
269
|
showNewLabel,
|
|
272
|
-
showDownPayment,
|
|
273
270
|
historyPriceDifference: price ? price.historyPriceDifference : 0,
|
|
274
271
|
historyPriceDifferencePerCent: price ? price.historyPriceDifferencePerCent : 0,
|
|
275
272
|
activeTab
|
|
@@ -12,14 +12,13 @@ interface IProps {
|
|
|
12
12
|
historyPriceDifferencePerCent: number;
|
|
13
13
|
financingConfig?:any;
|
|
14
14
|
activeTab?:number;
|
|
15
|
-
showDownPayment:boolean;
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
const MIN_PERCENT = 5;
|
|
19
18
|
const MIN_PRICE_DIFFERENCE = 500;
|
|
20
19
|
const EUR = `\u20AC`;
|
|
21
20
|
|
|
22
|
-
const PriceData: React.FunctionComponent<IProps> = ({ t,
|
|
21
|
+
const PriceData: React.FunctionComponent<IProps> = ({ t, showNewLabel, historyPriceDifference, historyPriceDifferencePerCent, financingConfig, activeTab }) => {
|
|
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, showDownPayment,showNew
|
|
|
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}>
|
|
@@ -463,7 +463,9 @@ export function getChipFilterValue(
|
|
|
463
463
|
case 'SEATS':
|
|
464
464
|
case 'CUBIC_CAPACITY':
|
|
465
465
|
title = t(`SearchPage:filters.${chipFilterKey.toLocaleLowerCase()}`);
|
|
466
|
-
|
|
466
|
+
from = !!chipFilterValue.from ? `${t('SearchPage:filters.from')} ${chipFilterValue.from}` : '';
|
|
467
|
+
to = !!chipFilterValue.to ? `${t('SearchPage:filters.to')} ${chipFilterValue.to}` : '';
|
|
468
|
+
const fromTo = (from && to) ? `${chipFilterValue.from} - ${chipFilterValue.to}` : `${from || to}`;
|
|
467
469
|
filterValue = `${title} ${fromTo}`;
|
|
468
470
|
break;
|
|
469
471
|
|