@bytebrand/fe-ui-core 4.2.181 → 4.2.183
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
|
@@ -428,15 +428,17 @@ class FiltersContainer extends React.Component<IFiltersContainerProps, {}> {
|
|
|
428
428
|
<div className={styles.title}>
|
|
429
429
|
<h3 className={styles.titleText}>{this.props.t('SearchPage:filterBy')}</h3>
|
|
430
430
|
</div>
|
|
431
|
-
|
|
432
|
-
<div className={styles.
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
431
|
+
{!isAlternative ? (
|
|
432
|
+
<div className={styles.vehicleId}>
|
|
433
|
+
<div className={styles.vehicleIdLabel}>auto.de-ID</div>
|
|
434
|
+
<MaterialField
|
|
435
|
+
value={VEHICLE_ID.value}
|
|
436
|
+
onChange={this.onVehicleIdChange}
|
|
437
|
+
size='custom'
|
|
438
|
+
placeholder={t('SearchPage:vehicleIdexample')}
|
|
439
|
+
/>
|
|
440
|
+
</div>
|
|
441
|
+
) : ''}
|
|
440
442
|
{this.renderFilters()}
|
|
441
443
|
<Link className={styles.linkToDetailed} to={`/${isAlternative ? 'alternative' : 'search'}/detailed${locationSearch}`}>{t('SearchPage:detailedSearch')}</Link>
|
|
442
444
|
</div>
|
|
@@ -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
|
-
const
|
|
466
|
+
const from = !!chipFilterValue.from ? `${t('SearchPage:filters.from')} ${chipFilterValue.from}` : '';
|
|
467
|
+
const 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
|
|