@bytebrand/fe-ui-core 4.2.190 → 4.2.191
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));
|
|
@@ -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
|
}
|