@bytebrand/fe-ui-core 4.2.190 → 4.2.192
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
|
@@ -12,6 +12,7 @@ type LinkItem = { link: string, title: string };
|
|
|
12
12
|
interface IBreadcrumbsProps {
|
|
13
13
|
page: string;
|
|
14
14
|
pageProps: any;
|
|
15
|
+
Link: any;
|
|
15
16
|
infoBlockData: { contentMobile: string, title: string }[];
|
|
16
17
|
t?: (key: string, options?: object) => string;
|
|
17
18
|
}
|
|
@@ -32,7 +33,7 @@ class Breadcrumbs extends React.PureComponent<IBreadcrumbsProps> {
|
|
|
32
33
|
};
|
|
33
34
|
|
|
34
35
|
renderList = (list: LinkItem[]) => {
|
|
35
|
-
const {
|
|
36
|
+
const {t = (phrase: string) => _get(breadcrumbsTranslate(), phrase.replace(':', '.'), phrase), page, Link } = this.props;
|
|
36
37
|
|
|
37
38
|
return list.map((item, index): React.ReactElement<any> => {
|
|
38
39
|
const isLastItem: boolean = list.length - 1 === index;
|
|
@@ -43,7 +44,7 @@ class Breadcrumbs extends React.PureComponent<IBreadcrumbsProps> {
|
|
|
43
44
|
|
|
44
45
|
return item.link
|
|
45
46
|
? <span className={linkClassName} onClick={this.props.pageProps.onBreadCrumbClick} key={index}>
|
|
46
|
-
<
|
|
47
|
+
<Link to={page !== 'REFERENCE_VEHICLE_DETAILS' && item.link}>{item.title}</Link>
|
|
47
48
|
</span>
|
|
48
49
|
: <span className={textClassName} key={index}>
|
|
49
50
|
{bigItem}
|
|
@@ -90,4 +91,3 @@ class Breadcrumbs extends React.PureComponent<IBreadcrumbsProps> {
|
|
|
90
91
|
}
|
|
91
92
|
|
|
92
93
|
export default Breadcrumbs;
|
|
93
|
-
// export default withRouter(translate(['common'])(Breadcrumbs));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useState, useEffect, useRef, FunctionComponent } from 'react';
|
|
2
2
|
import _get from 'lodash/get';
|
|
3
|
-
import { Hidden } from 'react-grid-system';
|
|
3
|
+
import { Hidden, Visible } from 'react-grid-system';
|
|
4
4
|
import PriceContent from './partials/PriceContent';
|
|
5
5
|
import Title from './partials/Title';
|
|
6
6
|
import Price from './partials/Price';
|
|
@@ -148,24 +148,26 @@ const VehicleDetailedSidebar: FunctionComponent<IVehicleDetailedSidebarProps> =
|
|
|
148
148
|
<Title {...titleProps} />
|
|
149
149
|
<Price {...priceProps} />
|
|
150
150
|
<Price {...priceProps} isSticky={true} />
|
|
151
|
-
<
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
<a
|
|
162
|
-
href='https://de.trustpilot.com/review/www.auto.de'
|
|
163
|
-
target='_blank'
|
|
164
|
-
rel='noopener noreferrer'
|
|
151
|
+
<Visible xs sm md>
|
|
152
|
+
<div
|
|
153
|
+
ref={ref}
|
|
154
|
+
data-locale='de-DE'
|
|
155
|
+
data-template-id='5419b6a8b0d04a076446a9ad'
|
|
156
|
+
data-businessunit-id='46edfd1c0000640005017f22'
|
|
157
|
+
data-style-height='42px'
|
|
158
|
+
data-style-width='100%'
|
|
159
|
+
data-theme='light'
|
|
160
|
+
data-style-alignment='center'
|
|
165
161
|
>
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
162
|
+
<a
|
|
163
|
+
href='https://de.trustpilot.com/review/www.auto.de'
|
|
164
|
+
target='_blank'
|
|
165
|
+
rel='noopener noreferrer'
|
|
166
|
+
>
|
|
167
|
+
Trustpilot
|
|
168
|
+
</a>
|
|
169
|
+
</div>
|
|
170
|
+
</Visible>
|
|
169
171
|
{props.children}
|
|
170
172
|
</div>
|
|
171
173
|
<div>
|
|
@@ -2,6 +2,7 @@ import React, { useState, useEffect } from 'react';
|
|
|
2
2
|
import FormattedNumber from '../../FormattedNumber/FormattedNumber';
|
|
3
3
|
import { Slider } from '@mui/material';
|
|
4
4
|
import { isMobileOnly } from 'react-device-detect';
|
|
5
|
+
import { iOS } from '../../../framework/utils/CommonUtils';
|
|
5
6
|
import { createTheme, ThemeProvider } from '@mui/material/styles';
|
|
6
7
|
|
|
7
8
|
interface IRangeProps {
|
|
@@ -50,6 +51,9 @@ const Range: React.FC<IRangeProps> = ({
|
|
|
50
51
|
)
|
|
51
52
|
|
|
52
53
|
const onChangeRange = (event: Event, value: number | number[]) => {
|
|
54
|
+
if (isIOS && event.type === 'mousedown') {
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
53
57
|
setRangeValue(value);
|
|
54
58
|
onChange(event, value)
|
|
55
59
|
}
|