@bytebrand/fe-ui-core 4.6.8 → 4.6.9
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 +1 -1
- package/source/components/VehicleSmallCard/VehicleData/VehicleInfo/VehicleInfo.tsx +2 -1
- package/source/components/VehicleSmallCard/VehicleData/VehicleProperty/VehicleProperty.styl +4 -0
- package/source/components/VehicleSmallCard/VehicleData/VehicleProperty/VehicleProperty.tsx +3 -2
- package/source/locales/data.ts +3 -3
package/package.json
CHANGED
|
@@ -84,7 +84,8 @@ const VehicleInfo: React.FC<IVehicleInfoProps> = (props) => {
|
|
|
84
84
|
icon: decoratedProps[prop].icon,
|
|
85
85
|
description: decoratedProps[prop].value,
|
|
86
86
|
className: styles[decoratedProps[prop].name],
|
|
87
|
-
classNameIcon: (vehicleComponentName === 'search' || 'myVehicles' || 'favorite' || 'recently') && styles.carIconSearch
|
|
87
|
+
classNameIcon: (vehicleComponentName === 'search' || 'myVehicles' || 'favorite' || 'recently') && styles.carIconSearch,
|
|
88
|
+
hybridPlugin: engineData.hybridPlugin && prop === 'consumptionCombinedAlternateView' && vehicleComponentName === 'landing'
|
|
88
89
|
}));
|
|
89
90
|
|
|
90
91
|
return mainPropertiesList.map((property: any, index: number) => (
|
|
@@ -5,6 +5,7 @@ import styles from './VehicleProperty.styl';
|
|
|
5
5
|
export interface IVehicleProperty {
|
|
6
6
|
className?: string;
|
|
7
7
|
classNameIcon?: string;
|
|
8
|
+
hybridPlugin?: boolean;
|
|
8
9
|
icon: string;
|
|
9
10
|
description: React.ReactNode;
|
|
10
11
|
}
|
|
@@ -16,8 +17,8 @@ class VehicleProperty extends React.Component<IVehicleProperty, {}> {
|
|
|
16
17
|
};
|
|
17
18
|
|
|
18
19
|
render(): React.ReactNode {
|
|
19
|
-
const { className, classNameIcon, icon, description } = this.props;
|
|
20
|
-
const propertyClass: string = `${styles.carProp} ${className ? className : ''}`;
|
|
20
|
+
const { className, classNameIcon, icon, description, hybridPlugin } = this.props;
|
|
21
|
+
const propertyClass: string = `${styles.carProp} ${className ? className : ''} ${hybridPlugin ? styles.smallProp : ''}`;
|
|
21
22
|
const propertyClassIcon: string = `${styles.carIcon} ${classNameIcon ? classNameIcon : ''}`;
|
|
22
23
|
|
|
23
24
|
return (
|
package/source/locales/data.ts
CHANGED
|
@@ -46,7 +46,7 @@ export const vehicleProps = (car?: any, isOfferAvailable: boolean = true) => {
|
|
|
46
46
|
mileage: `${vehicleOption.mileage} km`,
|
|
47
47
|
consumption: `${vehicleOption.consumptionCombined}l/100km`,
|
|
48
48
|
consumptionPower: `${vehicleOption.consumptionPowerCombined}kWh/100km`,
|
|
49
|
-
consumptionPowerCombined: `${vehicleOption.consumptionPowerCombined}kWh/100km
|
|
49
|
+
consumptionPowerCombined: `${vehicleOption.consumptionPowerCombined}kWh/100km`,
|
|
50
50
|
consumptionGas: `${vehicleOption.consumptionCombined}kg/100km`,
|
|
51
51
|
consumptionCombined: `${vehicleOption.consumptionCombined}l/100km`,
|
|
52
52
|
power: `${vehicleOption.powerKW}\u00A0kW (${vehicleOption.powerPS}\u00A0PS)`,
|
|
@@ -83,8 +83,8 @@ export const vehicleProps = (car?: any, isOfferAvailable: boolean = true) => {
|
|
|
83
83
|
no: 'Nein',
|
|
84
84
|
yes: 'Ja',
|
|
85
85
|
batteryCapacity: `${vehicleOption.batteryCapacity} kWh`,
|
|
86
|
-
wltpCo2Combined: `${vehicleOption.wltpCo2}g CO2/km (WLTP,
|
|
87
|
-
wltpCo2WtdCombined: `${vehicleOption.wltpCo2}g CO2/km (WLTP, gew.,
|
|
86
|
+
wltpCo2Combined: `${vehicleOption.wltpCo2}g CO2/km (WLTP, komb)*`,
|
|
87
|
+
wltpCo2WtdCombined: `${vehicleOption.wltpCo2}g CO2/km (WLTP, gew., komb)*`
|
|
88
88
|
|
|
89
89
|
},
|
|
90
90
|
title: {
|