@bytebrand/fe-ui-core 4.2.193 → 4.2.194
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,7 +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';
|
|
4
|
-
import { isMobileOnly } from 'react-device-detect';
|
|
3
|
+
import { Hidden, Visible } from 'react-grid-system';
|
|
5
4
|
import PriceContent from './partials/PriceContent';
|
|
6
5
|
import Title from './partials/Title';
|
|
7
6
|
import Price from './partials/Price';
|
|
@@ -149,13 +148,13 @@ const VehicleDetailedSidebar: FunctionComponent<IVehicleDetailedSidebarProps> =
|
|
|
149
148
|
<Title {...titleProps} />
|
|
150
149
|
<Price {...priceProps} />
|
|
151
150
|
<Price {...priceProps} isSticky={true} />
|
|
152
|
-
|
|
151
|
+
<Visible xs sm md>
|
|
153
152
|
<div
|
|
154
153
|
ref={ref}
|
|
155
154
|
data-locale='de-DE'
|
|
156
155
|
data-template-id='5419b6a8b0d04a076446a9ad'
|
|
157
156
|
data-businessunit-id='46edfd1c0000640005017f22'
|
|
158
|
-
data-style-height='
|
|
157
|
+
data-style-height='42px'
|
|
159
158
|
data-style-width='100%'
|
|
160
159
|
data-theme='light'
|
|
161
160
|
data-style-alignment='center'
|
|
@@ -168,7 +167,7 @@ const VehicleDetailedSidebar: FunctionComponent<IVehicleDetailedSidebarProps> =
|
|
|
168
167
|
Trustpilot
|
|
169
168
|
</a>
|
|
170
169
|
</div>
|
|
171
|
-
|
|
170
|
+
</Visible>
|
|
172
171
|
{props.children}
|
|
173
172
|
</div>
|
|
174
173
|
<div>
|
|
@@ -2,7 +2,6 @@ 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';
|
|
6
5
|
import { createTheme, ThemeProvider } from '@mui/material/styles';
|
|
7
6
|
|
|
8
7
|
interface IRangeProps {
|
|
@@ -41,7 +40,6 @@ const Range: React.FC<IRangeProps> = ({
|
|
|
41
40
|
maxFinancingFirstInstallment
|
|
42
41
|
}: IRangeProps) => {
|
|
43
42
|
const [rangeValue, setRangeValue] = useState<number | number[]>(0);
|
|
44
|
-
const isIOS = iOS();
|
|
45
43
|
|
|
46
44
|
useEffect(
|
|
47
45
|
() => {
|
|
@@ -51,9 +49,6 @@ const Range: React.FC<IRangeProps> = ({
|
|
|
51
49
|
)
|
|
52
50
|
|
|
53
51
|
const onChangeRange = (event: Event, value: number | number[]) => {
|
|
54
|
-
if (isIOS && event.type === 'mousedown') {
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
52
|
setRangeValue(value);
|
|
58
53
|
onChange(event, value)
|
|
59
54
|
}
|