@bytebrand/fe-ui-core 4.2.191 → 4.2.193

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.191",
3
+ "version": "4.2.193",
4
4
  "description": "UI components for the auto.de project",
5
5
  "main": "index.ts",
6
6
  "module": "dist/common.js",
@@ -1,6 +1,7 @@
1
1
  import React, { useState, useEffect, useRef, 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';
4
5
  import PriceContent from './partials/PriceContent';
5
6
  import Title from './partials/Title';
6
7
  import Price from './partials/Price';
@@ -148,24 +149,26 @@ const VehicleDetailedSidebar: FunctionComponent<IVehicleDetailedSidebarProps> =
148
149
  <Title {...titleProps} />
149
150
  <Price {...priceProps} />
150
151
  <Price {...priceProps} isSticky={true} />
151
- <div
152
- ref={ref}
153
- data-locale='de-DE'
154
- data-template-id='5419b6a8b0d04a076446a9ad'
155
- data-businessunit-id='46edfd1c0000640005017f22'
156
- data-style-height='42px'
157
- data-style-width='100%'
158
- data-theme='light'
159
- data-style-alignment='center'
160
- >
161
- <a
162
- href='https://de.trustpilot.com/review/www.auto.de'
163
- target='_blank'
164
- rel='noopener noreferrer'
152
+ {isMobileOnly && (
153
+ <div
154
+ ref={ref}
155
+ data-locale='de-DE'
156
+ data-template-id='5419b6a8b0d04a076446a9ad'
157
+ data-businessunit-id='46edfd1c0000640005017f22'
158
+ data-style-height='32px'
159
+ data-style-width='100%'
160
+ data-theme='light'
161
+ data-style-alignment='center'
165
162
  >
166
- Trustpilot
167
- </a>
168
- </div>
163
+ <a
164
+ href='https://de.trustpilot.com/review/www.auto.de'
165
+ target='_blank'
166
+ rel='noopener noreferrer'
167
+ >
168
+ Trustpilot
169
+ </a>
170
+ </div>
171
+ )}
169
172
  {props.children}
170
173
  </div>
171
174
  <div>