@bytebrand/fe-ui-core 4.8.31 → 4.8.32
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,7 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import classnames from 'classnames';
|
|
4
|
+
import _get from 'lodash/get';
|
|
4
5
|
import styles from './VehicleInfo.styl';
|
|
5
6
|
import PriceRating from '../../../PriceRating/PriceRating';
|
|
6
7
|
import { Visible, Hidden } from 'react-grid-system';
|
|
@@ -43,7 +44,8 @@ const VehicleInfo: React.FC<IVehicleInfoProps> = (props) => {
|
|
|
43
44
|
consumption,
|
|
44
45
|
location,
|
|
45
46
|
offer,
|
|
46
|
-
engineData
|
|
47
|
+
engineData,
|
|
48
|
+
leasing
|
|
47
49
|
} = props;
|
|
48
50
|
const firstRegistrationDate = regDate && regDate !== 0 ? regDate : 'N/A';
|
|
49
51
|
|
|
@@ -149,7 +151,12 @@ const VehicleInfo: React.FC<IVehicleInfoProps> = (props) => {
|
|
|
149
151
|
),
|
|
150
152
|
...routeObj,
|
|
151
153
|
className: wrapClasses,
|
|
152
|
-
onClick: () => localStorage.setItem(
|
|
154
|
+
onClick: () => localStorage.setItem(
|
|
155
|
+
'activeTabCDP',
|
|
156
|
+
_get(leasing, 'isActive', false)
|
|
157
|
+
? t('vehicleProps:title.leasing')
|
|
158
|
+
: t('vehicleProps:title.financing')
|
|
159
|
+
),
|
|
153
160
|
href: url,
|
|
154
161
|
target,
|
|
155
162
|
rel
|
|
@@ -280,7 +280,12 @@ const VehicleSmallCard: FunctionComponent<IVehicleSmallCardProps> = (props) => {
|
|
|
280
280
|
target,
|
|
281
281
|
rel,
|
|
282
282
|
className: `${styles.redirectClassLink} ${styles.gridAreaTitle}`,
|
|
283
|
-
onClick: () => localStorage.setItem(
|
|
283
|
+
onClick: () => localStorage.setItem(
|
|
284
|
+
'activeTabCDP',
|
|
285
|
+
_get(price, 'leasing.isActive', false)
|
|
286
|
+
? t('vehicleProps:title.leasing')
|
|
287
|
+
: t('vehicleProps:title.financing')
|
|
288
|
+
),
|
|
284
289
|
href: url
|
|
285
290
|
})}
|
|
286
291
|
|
|
@@ -333,7 +338,12 @@ const VehicleSmallCard: FunctionComponent<IVehicleSmallCardProps> = (props) => {
|
|
|
333
338
|
target,
|
|
334
339
|
rel,
|
|
335
340
|
className: `${styles.redirectClassLink} ${styles.gridAreaImage}`,
|
|
336
|
-
onClick: () => localStorage.setItem(
|
|
341
|
+
onClick: () => localStorage.setItem(
|
|
342
|
+
'activeTabCDP',
|
|
343
|
+
_get(price, 'leasing.isActive', false)
|
|
344
|
+
? t('vehicleProps:title.leasing')
|
|
345
|
+
: t('vehicleProps:title.financing')
|
|
346
|
+
),
|
|
337
347
|
href: url
|
|
338
348
|
})}
|
|
339
349
|
<VehicleInfo {...vehicleInfoProps} />
|