@bytebrand/fe-ui-core 4.4.0 → 4.4.1

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytebrand/fe-ui-core",
3
- "version": "4.4.0",
3
+ "version": "4.4.1",
4
4
  "description": "UI components for the auto.de project",
5
5
  "main": "index.ts",
6
6
  "module": "dist/common.js",
@@ -1,7 +1,6 @@
1
- import React, { useState, useEffect, useRef, FunctionComponent } from 'react';
1
+ import React, { useState, useEffect, FunctionComponent } from 'react';
2
2
  import _get from 'lodash/get';
3
3
  import { Hidden } from 'react-grid-system';
4
- import { isMobileOnly } from 'react-device-detect';
5
4
  import PriceContent from './partials/PriceContent';
6
5
  import Title from './partials/Title';
7
6
  import Price from './partials/Price';
@@ -13,11 +12,6 @@ import DealerInfo from '../Alternative/DealerInfo';
13
12
  import { Skeleton } from '@mui/material';
14
13
 
15
14
  declare global {
16
- // interface Window {
17
- // Trustpilot?: {
18
- // loadFromElement: (element: HTMLElement, autoload?: boolean) => void;
19
- // };
20
- // }
21
15
  }
22
16
 
23
17
  const VehicleDetailedSidebar: FunctionComponent<IVehicleDetailedSidebarProps> = (props) => {
@@ -34,12 +28,10 @@ const VehicleDetailedSidebar: FunctionComponent<IVehicleDetailedSidebarProps> =
34
28
  setActiveTab,
35
29
  carLoaded,
36
30
  originUrl,
37
- // isAlternative,
38
31
  infoSections,
39
32
  onCurrentSalesPriceChange,
40
33
  isFetching
41
34
  } = props;
42
- // const ref = useRef(null);
43
35
  const [offerBlockOpen, setOfferBlockOpen] = useState(false);
44
36
  const onAdjustRateClick = () => setOfferBlockOpen(!offerBlockOpen);
45
37
 
@@ -112,12 +104,6 @@ const VehicleDetailedSidebar: FunctionComponent<IVehicleDetailedSidebarProps> =
112
104
  }
113
105
  ];
114
106
 
115
- // useEffect(() => {
116
- // if (window.Trustpilot) {
117
- // window.Trustpilot.loadFromElement(ref.current, true);
118
- // }
119
- // }, []);
120
-
121
107
  useEffect(() => {
122
108
  const getlocalStorageActiveTabCDP = localStorage.getItem('activeTabCDP');
123
109
  if (!getlocalStorageActiveTabCDP) return;
@@ -151,26 +137,7 @@ const VehicleDetailedSidebar: FunctionComponent<IVehicleDetailedSidebarProps> =
151
137
  <Title {...titleProps} />
152
138
  <Price {...priceProps} />
153
139
  <Price {...priceProps} isSticky={true} />
154
- {/* {isMobileOnly && (
155
- <div
156
- ref={ref}
157
- data-locale='de-DE'
158
- data-template-id='5419b6a8b0d04a076446a9ad'
159
- data-businessunit-id='46edfd1c0000640005017f22'
160
- data-style-height='32px'
161
- data-style-width='100%'
162
- data-theme='light'
163
- data-style-alignment='center'
164
- >
165
- <a
166
- href='https://de.trustpilot.com/review/www.auto.de'
167
- target='_blank'
168
- rel='noopener noreferrer'
169
- >
170
- Trustpilot
171
- </a>
172
- </div>
173
- )} */}
140
+ {}
174
141
  {props.children}
175
142
  </div> : <div className={styles.skeletonInfoContainer}><Skeleton /></div>
176
143
  }