@nyris/nyris-webapp 0.3.54 → 0.3.55

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.
Files changed (110) hide show
  1. package/build/asset-manifest.json +8 -7
  2. package/build/images/fav2/android-chrome-192x192.png +0 -0
  3. package/build/images/fav2/android-chrome-512x512.png +0 -0
  4. package/build/images/fav2/apple-touch-icon.png +0 -0
  5. package/build/images/fav2/browserconfig.xml +9 -0
  6. package/build/images/fav2/favicon-16x16.png +0 -0
  7. package/build/images/fav2/favicon-32x32.png +0 -0
  8. package/build/images/fav2/favicon.ico +0 -0
  9. package/build/images/fav2/mstile-144x144.png +0 -0
  10. package/build/images/fav2/mstile-150x150.png +0 -0
  11. package/build/images/fav2/mstile-310x150.png +0 -0
  12. package/build/images/fav2/mstile-310x310.png +0 -0
  13. package/build/images/fav2/mstile-70x70.png +0 -0
  14. package/build/images/fav2/safari-pinned-tab.svg +67 -0
  15. package/build/images/fav2/site.webmanifest +19 -0
  16. package/build/index.html +1 -1
  17. package/build/js/settings.example.js +1 -0
  18. package/build/manifest.json +13 -18
  19. package/build/static/css/main.d7425370.css +2 -0
  20. package/build/static/css/main.d7425370.css.map +1 -0
  21. package/build/static/js/main.7b9e6c68.js +3 -0
  22. package/build/static/js/{main.03fb1bc6.js.LICENSE.txt → main.7b9e6c68.js.LICENSE.txt} +1 -1
  23. package/build/static/js/main.7b9e6c68.js.map +1 -0
  24. package/build/static/media/path.b99a15de38340a04f80828bceeab9884.svg +3 -0
  25. package/package.json +3 -3
  26. package/public/images/fav2/android-chrome-192x192.png +0 -0
  27. package/public/images/fav2/android-chrome-512x512.png +0 -0
  28. package/public/images/fav2/apple-touch-icon.png +0 -0
  29. package/public/images/fav2/browserconfig.xml +9 -0
  30. package/public/images/fav2/favicon-16x16.png +0 -0
  31. package/public/images/fav2/favicon-32x32.png +0 -0
  32. package/public/images/fav2/favicon.ico +0 -0
  33. package/public/images/fav2/mstile-144x144.png +0 -0
  34. package/public/images/fav2/mstile-150x150.png +0 -0
  35. package/public/images/fav2/mstile-310x150.png +0 -0
  36. package/public/images/fav2/mstile-310x310.png +0 -0
  37. package/public/images/fav2/mstile-70x70.png +0 -0
  38. package/public/images/fav2/safari-pinned-tab.svg +67 -0
  39. package/public/images/fav2/site.webmanifest +19 -0
  40. package/public/index.html +8 -90
  41. package/public/js/settings.example.js +1 -0
  42. package/public/manifest.json +13 -18
  43. package/src/Store/Store.ts +0 -1
  44. package/src/Store/search/Search.ts +33 -74
  45. package/src/Store/search/search.initialState.ts +5 -4
  46. package/src/Store/search/types.ts +5 -4
  47. package/src/common/assets/icons/path.svg +3 -0
  48. package/src/components/AppMobile.tsx +0 -1
  49. package/src/components/DragDropFile.tsx +36 -28
  50. package/src/components/Experience-visual-search/ExperienceVisualSearch.scss +3 -4
  51. package/src/components/Experience-visual-search/ExperienceVisualSearch.tsx +14 -7
  52. package/src/components/Feedback.tsx +5 -5
  53. package/src/components/FooterMobile.tsx +4 -5
  54. package/src/components/GoBackButton.tsx +54 -0
  55. package/src/components/Header.tsx +27 -3
  56. package/src/components/HeaderMobile.tsx +29 -12
  57. package/src/components/ImagePreviewMobile.tsx +6 -3
  58. package/src/components/Inquiry/InquiryBanner.tsx +1 -1
  59. package/src/components/Layout.tsx +5 -14
  60. package/src/components/PanelResult/PostFilterAlgolia.tsx +3 -2
  61. package/src/components/ProductDetailView.tsx +338 -330
  62. package/src/components/ProductList/index.tsx +1 -1
  63. package/src/components/appMobile.scss +7 -0
  64. package/src/components/clear-refinements/clear-refinements.tsx +1 -1
  65. package/src/components/common.scss +18 -7
  66. package/src/components/current-refinements/current-refinements.tsx +10 -22
  67. package/src/components/drawer/cameraCustom.tsx +12 -1
  68. package/src/components/input/inputSearch.tsx +79 -21
  69. package/src/components/pre-filter/index.tsx +23 -7
  70. package/src/components/results/ItemResult.tsx +288 -285
  71. package/src/index.tsx +12 -14
  72. package/src/page/landingPage/AppMobile.tsx +3 -9
  73. package/src/page/landingPage/common.scss +164 -48
  74. package/src/page/result/index.tsx +116 -87
  75. package/src/translations.ts +3 -0
  76. package/src/types.ts +1 -0
  77. package/build/images/fav/android-icon-192x192.png +0 -0
  78. package/build/images/fav/apple-icon-114x114.png +0 -0
  79. package/build/images/fav/apple-icon-120x120.png +0 -0
  80. package/build/images/fav/apple-icon-144x144.png +0 -0
  81. package/build/images/fav/apple-icon-152x152.png +0 -0
  82. package/build/images/fav/apple-icon-180x180.png +0 -0
  83. package/build/images/fav/apple-icon-57x57.png +0 -0
  84. package/build/images/fav/apple-icon-60x60.png +0 -0
  85. package/build/images/fav/apple-icon-72x72.png +0 -0
  86. package/build/images/fav/apple-icon-76x76.png +0 -0
  87. package/build/images/fav/browserconfig.xml +0 -2
  88. package/build/images/fav/favicon-16x16.png +0 -0
  89. package/build/images/fav/favicon-32x32.png +0 -0
  90. package/build/images/fav/favicon-96x96.png +0 -0
  91. package/build/images/fav/manifest.json +0 -35
  92. package/build/static/css/main.8c0eb6c0.css +0 -2
  93. package/build/static/css/main.8c0eb6c0.css.map +0 -1
  94. package/build/static/js/main.03fb1bc6.js +0 -3
  95. package/build/static/js/main.03fb1bc6.js.map +0 -1
  96. package/public/images/fav/android-icon-192x192.png +0 -0
  97. package/public/images/fav/apple-icon-114x114.png +0 -0
  98. package/public/images/fav/apple-icon-120x120.png +0 -0
  99. package/public/images/fav/apple-icon-144x144.png +0 -0
  100. package/public/images/fav/apple-icon-152x152.png +0 -0
  101. package/public/images/fav/apple-icon-180x180.png +0 -0
  102. package/public/images/fav/apple-icon-57x57.png +0 -0
  103. package/public/images/fav/apple-icon-60x60.png +0 -0
  104. package/public/images/fav/apple-icon-72x72.png +0 -0
  105. package/public/images/fav/apple-icon-76x76.png +0 -0
  106. package/public/images/fav/browserconfig.xml +0 -2
  107. package/public/images/fav/favicon-16x16.png +0 -0
  108. package/public/images/fav/favicon-32x32.png +0 -0
  109. package/public/images/fav/favicon-96x96.png +0 -0
  110. package/public/images/fav/manifest.json +0 -35
@@ -107,10 +107,6 @@ function ItemResult(props: Props) {
107
107
  setOpenDetailedView('image');
108
108
 
109
109
  dispatch(onToggleModalItemDetail(true));
110
- dispatch(updateStatusLoading(true));
111
- setTimeout(() => {
112
- dispatch(updateStatusLoading(false));
113
- }, 400);
114
110
  };
115
111
  const ctaLink = get(
116
112
  dataItem,
@@ -226,77 +222,83 @@ function ItemResult(props: Props) {
226
222
  </div>
227
223
  </div>
228
224
  </div>
229
-
230
- <div
231
- className="box-content"
232
- style={{
233
- flexDirection: 'column',
234
- backgroundColor: '#F3F3F5',
235
- flexGrow: 1,
236
- zIndex: 100,
237
- display: 'flex',
238
- }}
239
- >
240
- <div className="box-top" style={{ color: '#FFFFFF' }}>
241
- <div
242
- style={{
243
- display: 'flex',
244
- justifyContent: 'space-between',
245
- flexDirection: 'column',
246
- gridGap: 8,
247
- color: settings.theme.mainTextColor || '#2B2C46',
248
- }}
249
- >
250
- {settings.CTAButtonText && (
251
- <Typography
252
- className="text-f12 max-line-1 fw-700"
253
- style={{
254
- color: settings.theme.mainTextColor || '#2B2C46',
255
- marginTop: 8,
256
- }}
257
- >
258
- {truncateString(dataItem[settings.field.productName], 45)}
259
- </Typography>
260
- )}
225
+ {settings.simpleCardView ? (
226
+ <div className="info-container">
227
+ <div className="info-sku">{dataItem.sku}</div>
228
+ <span className="info-marking">{dataItem.Bezeichnung}</span>
229
+ <div className="info-description">{settings.language === 'en' ? dataItem.VK_Text_Englisch : dataItem.VK_Text_Deutsch}</div>
230
+ </div>
231
+ ) : (
232
+ <div
233
+ className="box-content"
234
+ style={{
235
+ flexDirection: 'column',
236
+ backgroundColor: '#F3F3F5',
237
+ flexGrow: 1,
238
+ zIndex: 100,
239
+ display: 'flex',
240
+ }}
241
+ >
242
+ <div className="box-top" style={{ color: '#FFFFFF' }}>
261
243
  <div
262
244
  style={{
263
245
  display: 'flex',
264
246
  justifyContent: 'space-between',
265
- flexDirection: 'row',
247
+ flexDirection: 'column',
266
248
  gridGap: 8,
267
249
  color: settings.theme.mainTextColor || '#2B2C46',
268
- marginTop: settings.CTAButtonText ? 0 : 8,
269
250
  }}
270
251
  >
271
- <Tooltip
272
- title={sku}
273
- placement="top"
274
- arrow={true}
275
- disableHoverListener={sku?.length < 19 || !sku}
276
- >
252
+ {settings.CTAButtonText && (
277
253
  <Typography
278
- className="text-f12 max-line-1 fw-400"
254
+ className="text-f12 max-line-1 fw-700"
279
255
  style={{
280
256
  color: settings.theme.mainTextColor || '#2B2C46',
257
+ marginTop: 8,
281
258
  }}
282
259
  >
283
- {truncateString(
284
- sku,
285
- !settings.warehouseVariant ? 29 : isMobile ? 17 : 20,
286
- )}
260
+ {truncateString(dataItem[settings.field.productName], 45)}
287
261
  </Typography>
288
- </Tooltip>
289
-
290
- {settings.warehouseVariant &&
291
- !isUndefined(
292
- get(dataItem, settings.field.warehouseStockValue),
293
- ) && (
262
+ )}
263
+ <div
264
+ style={{
265
+ display: 'flex',
266
+ justifyContent: 'space-between',
267
+ flexDirection: 'row',
268
+ gridGap: 8,
269
+ color: settings.theme.mainTextColor || '#2B2C46',
270
+ marginTop: settings.CTAButtonText ? 0 : 8,
271
+ }}
272
+ >
273
+ <Tooltip
274
+ title={sku}
275
+ placement="top"
276
+ arrow={true}
277
+ disableHoverListener={sku?.length < 19 || !sku}
278
+ >
294
279
  <Typography
295
280
  className="text-f12 max-line-1 fw-400"
296
281
  style={{
297
- color: settings.theme?.mainTextColor || '#2B2C46',
282
+ color: settings.theme.mainTextColor || '#2B2C46',
298
283
  }}
299
284
  >
285
+ {truncateString(
286
+ sku,
287
+ !settings.warehouseVariant ? 29 : isMobile ? 17 : 20,
288
+ )}
289
+ </Typography>
290
+ </Tooltip>
291
+
292
+ {settings.warehouseVariant &&
293
+ !isUndefined(
294
+ get(dataItem, settings.field.warehouseStockValue),
295
+ ) && (
296
+ <Typography
297
+ className="text-f12 max-line-1 fw-400"
298
+ style={{
299
+ color: settings.theme?.mainTextColor || '#2B2C46',
300
+ }}
301
+ >
300
302
  <span
301
303
  style={{
302
304
  color: get(dataItem, settings.field.warehouseStockValue)
@@ -307,143 +309,203 @@ function ItemResult(props: Props) {
307
309
  >
308
310
  {get(dataItem, settings.field.warehouseStockValue) || 0}
309
311
  </span>
310
- </Typography>
312
+ </Typography>
313
+ )}
314
+ </div>
315
+ <div
316
+ style={{
317
+ display: 'flex',
318
+ justifyContent: 'space-between',
319
+ flexDirection: 'row',
320
+ gridGap: 8,
321
+ color: settings.theme.mainTextColor || '#2B2C46',
322
+ }}
323
+ >
324
+ {(brand || settings.brandName) && (
325
+ <ProductAttribute
326
+ title={t('Brand')}
327
+ value={brand || settings.brandName}
328
+ padding={settings.theme.brandFieldPadding || '4px 8px'}
329
+ width={{ xs: '49%' }}
330
+ backgroundColor={settings.theme.brandFieldBackground}
331
+ isTitleVisible={settings.isBrandNameTitleVisible}
332
+ />
333
+ )}
334
+
335
+ {manufacturerNumber && (
336
+ <ProductAttribute
337
+ title={t('Mfr. No.')}
338
+ value={manufacturerNumber}
339
+ padding="4px 8px"
340
+ width={{ xs: '49%' }}
341
+ />
311
342
  )}
343
+ </div>
312
344
  </div>
345
+ </div>
346
+ {settings.warehouseVariant && (
313
347
  <div
314
348
  style={{
315
349
  display: 'flex',
316
350
  justifyContent: 'space-between',
317
- flexDirection: 'row',
318
- gridGap: 8,
351
+ gridGap: 10,
319
352
  color: settings.theme.mainTextColor || '#2B2C46',
353
+ marginTop: 8,
320
354
  }}
321
355
  >
322
- {(brand || settings.brandName) && (
356
+ {settings.field.warehouseNumber && (
323
357
  <ProductAttribute
324
- title={t('Brand')}
325
- value={brand || settings.brandName}
326
- padding={settings.theme.brandFieldPadding || '4px 8px'}
358
+ title={
359
+ get(dataItem, settings.field.warehouseNumber) ||
360
+ settings.field.warehouseNumber
361
+ }
362
+ value={
363
+ get(dataItem, settings.field.warehouseNumberValue) || 'N/A'
364
+ }
365
+ padding="4px 8px"
327
366
  width={{ xs: '49%' }}
328
- backgroundColor={settings.theme.brandFieldBackground}
329
- isTitleVisible={settings.isBrandNameTitleVisible}
330
367
  />
331
368
  )}
332
369
 
333
- {manufacturerNumber && (
370
+ {settings.field.warehouseShelfNumber && (
334
371
  <ProductAttribute
335
- title={t('Mfr. No.')}
336
- value={manufacturerNumber}
372
+ title={
373
+ get(dataItem, settings.field.warehouseShelfNumber) ||
374
+ settings.field.warehouseShelfNumber
375
+ }
376
+ value={
377
+ get(dataItem, settings.field.warehouseShelfNumberValue) ||
378
+ 'N/A'
379
+ }
337
380
  padding="4px 8px"
338
381
  width={{ xs: '49%' }}
339
382
  />
340
383
  )}
341
384
  </div>
342
- </div>
343
- </div>
344
- {settings.warehouseVariant && (
345
- <div
346
- style={{
347
- display: 'flex',
348
- justifyContent: 'space-between',
349
- gridGap: 10,
350
- color: settings.theme.mainTextColor || '#2B2C46',
351
- marginTop: 8,
352
- }}
353
- >
354
- {settings.field.warehouseNumber && (
355
- <ProductAttribute
356
- title={
357
- get(dataItem, settings.field.warehouseNumber) ||
358
- settings.field.warehouseNumber
359
- }
360
- value={
361
- get(dataItem, settings.field.warehouseNumberValue) || 'N/A'
362
- }
363
- padding="4px 8px"
364
- width={{ xs: '49%' }}
365
- />
366
- )}
367
-
368
- {settings.field.warehouseShelfNumber && (
369
- <ProductAttribute
370
- title={
371
- get(dataItem, settings.field.warehouseShelfNumber) ||
372
- settings.field.warehouseShelfNumber
373
- }
374
- value={
375
- get(dataItem, settings.field.warehouseShelfNumberValue) ||
376
- 'N/A'
377
- }
378
- padding="4px 8px"
379
- width={{ xs: '49%' }}
380
- />
381
- )}
382
- </div>
383
- )}
384
- <div>
385
- {settings.secondaryCTAButtonText && (
386
- <div
387
- style={{
388
- boxShadow: '-2px 2px 4px rgba(170, 171, 181, 0.5)',
389
- // marginBottom: 22,
390
- height: 40,
391
- background: settings.theme.secondaryCTAButtonColor || '#2B2C46',
392
- borderRadius: 4,
393
- padding: '0px 8px',
394
- marginTop: '8px',
395
- display: 'flex',
396
- justifyItems: 'center',
397
- alignItems: 'center',
398
- justifyContent: 'space-between',
399
- }}
400
- >
385
+ )}
386
+ <div>
387
+ {settings.secondaryCTAButtonText && (
401
388
  <div
402
389
  style={{
390
+ boxShadow: '-2px 2px 4px rgba(170, 171, 181, 0.5)',
391
+ // marginBottom: 22,
392
+ height: 40,
393
+ background: settings.theme.secondaryCTAButtonColor || '#2B2C46',
394
+ borderRadius: 4,
395
+ padding: '0px 8px',
396
+ marginTop: '8px',
403
397
  display: 'flex',
398
+ justifyItems: 'center',
399
+ alignItems: 'center',
404
400
  justifyContent: 'space-between',
405
- width: '100%',
406
- padding: 0,
407
- cursor: secondaryCTALink ? 'pointer' : 'normal',
408
- }}
409
- onClick={() => {
410
- if (secondaryCTALink) {
411
- feedbackConversionEpic(state, indexItem, dataItem.sku);
412
- window.open(`${secondaryCTALink}`, '_blank');
413
- }
414
401
  }}
415
402
  >
416
- <Typography
417
- className="text-white max-line-2"
403
+ <div
418
404
  style={{
419
- overflow: 'hidden',
420
- textOverflow: 'ellipsis',
421
- fontWeight: 500,
422
- fontSize: '12px',
423
- letterSpacing: '0.27px',
424
- wordBreak: 'break-all',
425
- maxWidth: !isMobile && secondaryCTALink ? '136px' : '164x',
426
- paddingRight: '8px',
405
+ display: 'flex',
406
+ justifyContent: 'space-between',
407
+ width: '100%',
408
+ padding: 0,
409
+ cursor: secondaryCTALink ? 'pointer' : 'normal',
410
+ }}
411
+ onClick={() => {
412
+ if (secondaryCTALink) {
413
+ feedbackConversionEpic(state, indexItem, dataItem.sku);
414
+ window.open(`${secondaryCTALink}`, '_blank');
415
+ }
427
416
  }}
428
- align="left"
429
417
  >
430
- {settings.secondaryCTAButtonText}
431
- </Typography>
432
- {!isMobile && secondaryCTALink && (
433
- <IconSettings color="white" />
434
- )}
418
+ <Typography
419
+ className="text-white max-line-2"
420
+ style={{
421
+ overflow: 'hidden',
422
+ textOverflow: 'ellipsis',
423
+ fontWeight: 500,
424
+ fontSize: '12px',
425
+ letterSpacing: '0.27px',
426
+ wordBreak: 'break-all',
427
+ maxWidth: !isMobile && secondaryCTALink ? '136px' : '164x',
428
+ paddingRight: '8px',
429
+ }}
430
+ align="left"
431
+ >
432
+ {settings.secondaryCTAButtonText}
433
+ </Typography>
434
+ {!isMobile && secondaryCTALink && (
435
+ <IconSettings color="white" />
436
+ )}
437
+ </div>
435
438
  </div>
436
- </div>
437
- )}
438
- {!settings.CTAButtonText ? (
439
- <Tooltip
440
- title={dataItem[settings.field.productName]}
441
- placement="top"
442
- arrow={true}
443
- disableHoverListener={
444
- dataItem[settings.field.productName]?.length < 45
445
- }
446
- >
439
+ )}
440
+ {!settings.CTAButtonText ? (
441
+ <Tooltip
442
+ title={dataItem[settings.field.productName]}
443
+ placement="top"
444
+ arrow={true}
445
+ disableHoverListener={
446
+ dataItem[settings.field.productName]?.length < 45
447
+ }
448
+ >
449
+ <div
450
+ style={{
451
+ boxShadow: '-2px 2px 4px rgba(170, 171, 181, 0.5)',
452
+ // marginBottom: 22,
453
+ height: 40,
454
+ background:
455
+ settings.theme?.CTAButtonColor ||
456
+ settings.theme?.primaryColor,
457
+ borderRadius: 4,
458
+ padding: '0px 8px',
459
+ marginTop: '8px',
460
+ display: 'flex',
461
+ justifyItems: 'center',
462
+ alignItems: 'center',
463
+ justifyContent: 'space-between',
464
+ }}
465
+ >
466
+ <div
467
+ style={{
468
+ display: 'flex',
469
+ justifyContent: 'space-between',
470
+ alignItems: 'center',
471
+ width: '100%',
472
+ padding: 0,
473
+ cursor: ctaLink ? 'pointer' : 'normal',
474
+ }}
475
+ onClick={() => {
476
+ if (ctaLink) {
477
+ feedbackConversionEpic(state, indexItem, dataItem.sku);
478
+ window.open(`${ctaLink}`, '_blank');
479
+ }
480
+ }}
481
+ >
482
+ <Typography
483
+ className="max-line-2"
484
+ style={{
485
+ overflow: 'hidden',
486
+ textOverflow: 'ellipsis',
487
+ fontWeight: 500,
488
+ color: settings.theme?.CTAButtonTextColor || '#FFFFFF',
489
+ fontSize: '12px',
490
+ letterSpacing: '0.27px',
491
+ wordBreak: 'break-all',
492
+ maxWidth: !isMobile && ctaLink ? '136px' : '164x',
493
+ paddingRight: '8px',
494
+ }}
495
+ align="left"
496
+ >
497
+ {truncateString(dataItem[settings.field.productName], 45)}
498
+ </Typography>
499
+ {!isMobile && ctaLink && (
500
+ <IconOpenLink
501
+ fill={settings.theme?.CTAButtonTextColor || '#FFFFFF'}
502
+ width={16}
503
+ />
504
+ )}
505
+ </div>
506
+ </div>
507
+ </Tooltip>
508
+ ) : (
447
509
  <div
448
510
  style={{
449
511
  boxShadow: '-2px 2px 4px rgba(170, 171, 181, 0.5)',
@@ -492,7 +554,7 @@ function ItemResult(props: Props) {
492
554
  }}
493
555
  align="left"
494
556
  >
495
- {truncateString(dataItem[settings.field.productName], 45)}
557
+ {settings.CTAButtonText}
496
558
  </Typography>
497
559
  {!isMobile && ctaLink && (
498
560
  <IconOpenLink
@@ -502,125 +564,42 @@ function ItemResult(props: Props) {
502
564
  )}
503
565
  </div>
504
566
  </div>
505
- </Tooltip>
506
- ) : (
507
- <div
508
- style={{
509
- boxShadow: '-2px 2px 4px rgba(170, 171, 181, 0.5)',
510
- // marginBottom: 22,
511
- height: 40,
512
- background:
513
- settings.theme?.CTAButtonColor ||
514
- settings.theme?.primaryColor,
515
- borderRadius: 4,
516
- padding: '0px 8px',
517
- marginTop: '8px',
518
- display: 'flex',
519
- justifyItems: 'center',
520
- alignItems: 'center',
521
- justifyContent: 'space-between',
522
- }}
523
- >
567
+ )}
568
+
569
+ {settings.showFeedbackAndShare && (
524
570
  <div
525
- style={{
526
- display: 'flex',
527
- justifyContent: 'space-between',
528
- alignItems: 'center',
529
- width: '100%',
530
- padding: 0,
531
- cursor: ctaLink ? 'pointer' : 'normal',
532
- }}
533
- onClick={() => {
534
- if (ctaLink) {
535
- feedbackConversionEpic(state, indexItem, dataItem.sku);
536
- window.open(`${ctaLink}`, '_blank');
537
- }
538
- }}
571
+ className="box-bottom"
572
+ style={{ marginBottom: 6, marginTop: 12 }}
539
573
  >
540
- <Typography
541
- className="max-line-2"
542
- style={{
543
- overflow: 'hidden',
544
- textOverflow: 'ellipsis',
545
- fontWeight: 500,
546
- color: settings.theme?.CTAButtonTextColor || '#FFFFFF',
547
- fontSize: '12px',
548
- letterSpacing: '0.27px',
549
- wordBreak: 'break-all',
550
- maxWidth: !isMobile && ctaLink ? '136px' : '164x',
551
- paddingRight: '8px',
552
- }}
553
- align="left"
574
+ <Grid
575
+ container
576
+ justifyContent={
577
+ settings.shareOption ? 'space-between' : 'space-around'
578
+ }
579
+ alignItems="center"
554
580
  >
555
- {settings.CTAButtonText}
556
- </Typography>
557
- {!isMobile && ctaLink && (
558
- <IconOpenLink
559
- fill={settings.theme?.CTAButtonTextColor || '#FFFFFF'}
560
- width={16}
561
- />
562
- )}
563
- </div>
564
- </div>
565
- )}
566
-
567
- {settings.showFeedbackAndShare && (
568
- <div
569
- className="box-bottom"
570
- style={{ marginBottom: 6, marginTop: 12 }}
571
- >
572
- <Grid
573
- container
574
- justifyContent={
575
- settings.shareOption ? 'space-between' : 'space-around'
576
- }
577
- alignItems="center"
578
- >
579
- <Grid item>
580
- <div
581
- style={{
582
- display: 'flex',
583
- alignItems: 'center',
584
- }}
585
- >
586
- <Button
587
- className="btn-item"
588
- onClick={() => {
589
- handlerFeedback('like');
590
- setFeedback('like');
591
- }}
592
- >
593
- <IconLike
594
- width={16}
595
- height={16}
596
- color={feedback === 'like' ? '#3E36DC' : '#000000'}
597
- />
598
- </Button>
599
- </div>
600
- </Grid>
601
- <Grid item>
602
- <div
603
- style={{
604
- display: 'flex',
605
- alignItems: 'center',
606
- }}
607
- >
608
- <Button
609
- className="btn-item"
610
- onClick={() => {
611
- handlerFeedback('dislike');
612
- setFeedback('dislike');
581
+ <Grid item>
582
+ <div
583
+ style={{
584
+ display: 'flex',
585
+ alignItems: 'center',
613
586
  }}
614
587
  >
615
- <IconDisLike
616
- width={16}
617
- height={16}
618
- color={feedback === 'dislike' ? '#CC1854' : '#000000'}
619
- />
620
- </Button>
621
- </div>
622
- </Grid>
623
- {settings.shareOption && (
588
+ <Button
589
+ className="btn-item"
590
+ onClick={() => {
591
+ handlerFeedback('like');
592
+ setFeedback('like');
593
+ }}
594
+ >
595
+ <IconLike
596
+ width={16}
597
+ height={16}
598
+ color={feedback === 'like' ? '#3E36DC' : '#000000'}
599
+ />
600
+ </Button>
601
+ </div>
602
+ </Grid>
624
603
  <Grid item>
625
604
  <div
626
605
  style={{
@@ -630,18 +609,42 @@ function ItemResult(props: Props) {
630
609
  >
631
610
  <Button
632
611
  className="btn-item"
633
- onClick={() => setOpenModalShare(true)}
612
+ onClick={() => {
613
+ handlerFeedback('dislike');
614
+ setFeedback('dislike');
615
+ }}
634
616
  >
635
- <IconShare width={16} height={16} color="#000000" />
617
+ <IconDisLike
618
+ width={16}
619
+ height={16}
620
+ color={feedback === 'dislike' ? '#CC1854' : '#000000'}
621
+ />
636
622
  </Button>
637
623
  </div>
638
624
  </Grid>
639
- )}
640
- </Grid>
641
- </div>
642
- )}
625
+ {settings.shareOption && (
626
+ <Grid item>
627
+ <div
628
+ style={{
629
+ display: 'flex',
630
+ alignItems: 'center',
631
+ }}
632
+ >
633
+ <Button
634
+ className="btn-item"
635
+ onClick={() => setOpenModalShare(true)}
636
+ >
637
+ <IconShare width={16} height={16} color="#000000" />
638
+ </Button>
639
+ </div>
640
+ </Grid>
641
+ )}
642
+ </Grid>
643
+ </div>
644
+ )}
645
+ </div>
643
646
  </div>
644
- </div>
647
+ )}
645
648
  </div>
646
649
  );
647
650
  }