@bytebrand/fe-ui-core 4.2.247 → 4.2.248

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.2.247",
3
+ "version": "4.2.248",
4
4
  "description": "UI components for the auto.de project",
5
5
  "main": "index.ts",
6
6
  "module": "dist/common.js",
@@ -13,11 +13,11 @@ import DealerInfo from '../Alternative/DealerInfo';
13
13
  import { Skeleton } from '@mui/material';
14
14
 
15
15
  declare global {
16
- interface Window {
17
- Trustpilot?: {
18
- loadFromElement: (element: HTMLElement, autoload?: boolean) => void;
19
- };
20
- }
16
+ // interface Window {
17
+ // Trustpilot?: {
18
+ // loadFromElement: (element: HTMLElement, autoload?: boolean) => void;
19
+ // };
20
+ // }
21
21
  }
22
22
 
23
23
  const VehicleDetailedSidebar: FunctionComponent<IVehicleDetailedSidebarProps> = (props) => {
@@ -39,7 +39,7 @@ const VehicleDetailedSidebar: FunctionComponent<IVehicleDetailedSidebarProps> =
39
39
  onCurrentSalesPriceChange,
40
40
  isFetching
41
41
  } = props;
42
- const ref = useRef(null);
42
+ // const ref = useRef(null);
43
43
  const [offerBlockOpen, setOfferBlockOpen] = useState(false);
44
44
  const onAdjustRateClick = () => setOfferBlockOpen(!offerBlockOpen);
45
45
 
@@ -112,11 +112,11 @@ const VehicleDetailedSidebar: FunctionComponent<IVehicleDetailedSidebarProps> =
112
112
  }
113
113
  ];
114
114
 
115
- useEffect(() => {
116
- if (window.Trustpilot) {
117
- window.Trustpilot.loadFromElement(ref.current, true);
118
- }
119
- }, []);
115
+ // useEffect(() => {
116
+ // if (window.Trustpilot) {
117
+ // window.Trustpilot.loadFromElement(ref.current, true);
118
+ // }
119
+ // }, []);
120
120
 
121
121
  useEffect(() => {
122
122
  const getlocalStorageActiveTabCDP = localStorage.getItem('activeTabCDP');
@@ -151,7 +151,7 @@ const VehicleDetailedSidebar: FunctionComponent<IVehicleDetailedSidebarProps> =
151
151
  <Title {...titleProps} />
152
152
  <Price {...priceProps} />
153
153
  <Price {...priceProps} isSticky={true} />
154
- {isMobileOnly && (
154
+ {/* {isMobileOnly && (
155
155
  <div
156
156
  ref={ref}
157
157
  data-locale='de-DE'
@@ -170,7 +170,7 @@ const VehicleDetailedSidebar: FunctionComponent<IVehicleDetailedSidebarProps> =
170
170
  Trustpilot
171
171
  </a>
172
172
  </div>
173
- )}
173
+ )} */}
174
174
  {props.children}
175
175
  </div> : <div className={styles.skeletonInfoContainer}><Skeleton /></div>
176
176
  }