@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
@@ -194,7 +194,7 @@ function ProductDetailView(props: Props) {
194
194
  style={{
195
195
  position: 'absolute',
196
196
  right: '16px',
197
- background: '#E9E9EC',
197
+ background: 'rgba(243, 243, 245, 0.4)',
198
198
  width: '32px',
199
199
  height: '32px',
200
200
  borderRadius: '100%',
@@ -293,176 +293,227 @@ function ProductDetailView(props: Props) {
293
293
  paddingLeft: '16px',
294
294
  paddingRight: '16px',
295
295
  paddingBottom: '16px',
296
- backgroundColor: '#F3F3F5',
296
+ backgroundColor: settings.simpleCardView ? '#FaFafa' : '#F3F3F5',
297
297
  marginTop: '6px',
298
298
  }}
299
299
  >
300
- <div
301
- className="box-content"
302
- style={{
303
- display: 'flex',
304
- marginTop: '16px',
305
- flexDirection: 'column',
306
- backgroundColor: '#F3F3F5',
307
- }}
308
- >
309
- <div className="box-top">
310
- {settings.warehouseVariant && (
311
- <div
312
- style={{
313
- display: 'flex',
314
- justifyContent: 'space-between',
315
- flexDirection: 'row',
316
- color: settings.theme.mainTextColor ||'#2B2C46',
317
- marginBottom: 10,
318
- paddingLeft: 16,
319
- paddingRight: 16,
320
- gridGap: 8,
321
- }}
300
+ {settings.simpleCardView ? (
301
+ <div className="info-container">
302
+ <div className="info-sku">{dataItem.sku}</div>
303
+ <div className="info-marking">{dataItem.Bezeichnung}</div>
304
+ <div className="info-description">{settings.language === 'en' ? dataItem.VK_Text_Englisch : dataItem.VK_Text_Deutsch}</div>
305
+ </div>
306
+ ) : (
307
+ <div
308
+ className="box-content"
309
+ style={{
310
+ display: 'flex',
311
+ marginTop: '16px',
312
+ flexDirection: 'column',
313
+ backgroundColor: '#F3F3F5',
314
+ }}
315
+ >
316
+ <div className="box-top">
317
+ {settings.warehouseVariant && (
318
+ <div
319
+ style={{
320
+ display: 'flex',
321
+ justifyContent: 'space-between',
322
+ flexDirection: 'row',
323
+ color: settings.theme.mainTextColor ||'#2B2C46',
324
+ marginBottom: 10,
325
+ paddingLeft: 16,
326
+ paddingRight: 16,
327
+ gridGap: 8,
328
+ }}
329
+ >
330
+ <Typography
331
+ className="text-f12 max-line-1 fw-400"
332
+ style={{
333
+ color: settings.theme.mainTextColor || '#2B2C46',
334
+ }}
335
+ >
336
+ {sku}
337
+ </Typography>
338
+
339
+ {settings.warehouseVariant &&
340
+ !isUndefined(
341
+ get(dataItem, settings.field.warehouseStockValue),
342
+ ) && (
343
+ <Typography
344
+ className="text-f12 max-line-1 fw-400"
345
+ style={{
346
+ color: settings.theme.mainTextColor || '#2B2C46',
347
+ }}
348
+ >
349
+ <span
350
+ style={{
351
+ color: get(
352
+ dataItem,
353
+ settings.field.warehouseStockValue,
354
+ )
355
+ ? '#00C070'
356
+ : '#c54545',
357
+ fontWeight: 600,
358
+ }}
359
+ >
360
+ {get(dataItem, settings.field.warehouseStockValue) || 0}
361
+ </span>
362
+ </Typography>
363
+ )}
364
+ </div>
365
+ )}
366
+
367
+ <Grid
368
+ container
369
+ justifyContent="space-between"
370
+ style={{ backgroundColor: '#F3F3F5' }}
322
371
  >
323
- <Typography
324
- className="text-f12 max-line-1 fw-400"
372
+ <div
325
373
  style={{
326
- color: settings.theme.mainTextColor || '#2B2C46',
374
+ gap: 6,
375
+ display: 'flex',
376
+ flexDirection: 'row',
377
+ flexWrap: 'wrap',
378
+ width: '100%',
327
379
  }}
328
380
  >
329
- {sku}
330
- </Typography>
331
-
332
- {settings.warehouseVariant &&
333
- !isUndefined(
334
- get(dataItem, settings.field.warehouseStockValue),
335
- ) && (
336
- <Typography
337
- className="text-f12 max-line-1 fw-400"
381
+ {!settings.warehouseVariant && settings.CTAButtonText && (
382
+ <ProductAttribute
383
+ title={t('Product name')}
384
+ value={title}
385
+ backgroundColor={settings.theme.brandFieldBackground}
386
+ width={
387
+ settings.warehouseVariant
388
+ ? { xs: '49%', md: 'fit-content' }
389
+ : { xs: '100%', md: 'fit-content' }
390
+ }
391
+ />
392
+ )}
393
+ {!settings.warehouseVariant && (
394
+ <ProductAttribute
395
+ title={settings.itemIdLabel || 'SKU'}
396
+ value={sku}
397
+ backgroundColor={''}
398
+ width={
399
+ settings.warehouseVariant
400
+ ? { xs: '49%', md: 'fit-content' }
401
+ : { xs: '100%', md: 'fit-content' }
402
+ }
403
+ />
404
+ )}
405
+ {(brand || settings.brandName) && (
406
+ <ProductAttribute
407
+ title={t('Brand')}
408
+ value={brand || settings.brandName}
409
+ backgroundColor={settings.theme.brandFieldBackground}
410
+ width={
411
+ manufacturerNumber
412
+ ? { xs: '49%', md: 'fit-content' }
413
+ : { xs: '100%', md: 'fit-content' }
414
+ }
415
+ />
416
+ )}
417
+ {manufacturerNumber && (
418
+ <ProductAttribute
419
+ title={t('Manufacturer Number')}
420
+ value={manufacturerNumber}
421
+ width={
422
+ brand || settings.brandName
423
+ ? { xs: '49%', md: 'fit-content' }
424
+ : { xs: '100%', md: 'fit-content' }
425
+ }
426
+ />
427
+ )}
428
+ {settings.warehouseVariant && (
429
+ <>
430
+ {settings.field.warehouseNumber && (
431
+ <ProductAttribute
432
+ title={
433
+ get(dataItem, settings.field.warehouseNumber) ||
434
+ settings.field.warehouseNumber
435
+ }
436
+ value={
437
+ get(dataItem, settings.field.warehouseNumberValue) ||
438
+ 'N/A'
439
+ }
440
+ width={{ xs: '49%', md: 'fit-content' }}
441
+ />
442
+ )}
443
+ {settings.field.warehouseShelfNumber && (
444
+ <ProductAttribute
445
+ title={
446
+ get(dataItem, settings.field.warehouseShelfNumber) ||
447
+ settings.field.warehouseShelfNumber
448
+ }
449
+ value={
450
+ get(
451
+ dataItem,
452
+ settings.field.warehouseShelfNumberValue,
453
+ ) || 'N/A'
454
+ }
455
+ width={{ xs: '49%', md: 'fit-content' }}
456
+ />
457
+ )}
458
+ </>
459
+ )}
460
+ </div>
461
+
462
+ <Grid
463
+ item
464
+ xs={12}
465
+ style={{
466
+ backgroundColor: '#F3F3F5',
467
+ }}
468
+ >
469
+ {settings.secondaryCTAButtonText && (
470
+ <div
338
471
  style={{
339
- color: settings.theme.mainTextColor || '#2B2C46',
472
+ background: settings.theme.secondaryCTAButtonColor || '#2B2C46',
473
+ boxShadow: '0px 4px 4px rgba(0, 0, 0, 0.25)',
474
+ borderRadius: 4,
475
+ marginTop: 8,
476
+ display: 'flex',
477
+ justifyContent: 'space-between',
478
+ alignItems: 'center',
340
479
  }}
480
+ className="btn-detail-item"
341
481
  >
342
- <span
482
+ <div
343
483
  style={{
344
- color: get(
345
- dataItem,
346
- settings.field.warehouseStockValue,
347
- )
348
- ? '#00C070'
349
- : '#c54545',
350
- fontWeight: 600,
484
+ display: 'flex',
485
+ justifyContent: 'space-between',
486
+ alignItems: 'center',
487
+ width: '100%',
488
+ padding: '0px 12px',
489
+ minHeight: 64,
490
+ cursor: secondaryCTALink ? 'pointer' : 'normal',
491
+ }}
492
+ onClick={() => {
493
+ if (secondaryCTALink) {
494
+ window.open(`${secondaryCTALink}`, '_blank');
495
+ }
351
496
  }}
352
497
  >
353
- {get(dataItem, settings.field.warehouseStockValue) || 0}
354
- </span>
355
- </Typography>
498
+ <Typography
499
+ className="text-f18 fw-700 text-white max-line-2"
500
+ align="left"
501
+ style={{
502
+ letterSpacing: '0.55px',
503
+ maxWidth: '500px',
504
+ paddingRight: '4px',
505
+ }}
506
+ >
507
+ {settings.secondaryCTAButtonText}
508
+ </Typography>
509
+ {secondaryCTALink && <IconSettings color="white" />}
510
+ </div>
511
+ </div>
356
512
  )}
357
- </div>
358
- )}
359
-
360
- <Grid
361
- container
362
- justifyContent="space-between"
363
- style={{ backgroundColor: '#F3F3F5' }}
364
- >
365
- <div
366
- style={{
367
- gap: 6,
368
- display: 'flex',
369
- flexDirection: 'row',
370
- flexWrap: 'wrap',
371
- width: '100%',
372
- }}
373
- >
374
- {!settings.warehouseVariant && settings.CTAButtonText && (
375
- <ProductAttribute
376
- title={t('Product name')}
377
- value={title}
378
- backgroundColor={settings.theme.brandFieldBackground}
379
- width={
380
- settings.warehouseVariant
381
- ? { xs: '49%', md: 'fit-content' }
382
- : { xs: '100%', md: 'fit-content' }
383
- }
384
- />
385
- )}
386
- {!settings.warehouseVariant && (
387
- <ProductAttribute
388
- title={settings.itemIdLabel || 'SKU'}
389
- value={sku}
390
- backgroundColor={''}
391
- width={
392
- settings.warehouseVariant
393
- ? { xs: '49%', md: 'fit-content' }
394
- : { xs: '100%', md: 'fit-content' }
395
- }
396
- />
397
- )}
398
- {(brand || settings.brandName) && (
399
- <ProductAttribute
400
- title={t('Brand')}
401
- value={brand || settings.brandName}
402
- backgroundColor={settings.theme.brandFieldBackground}
403
- width={
404
- manufacturerNumber
405
- ? { xs: '49%', md: 'fit-content' }
406
- : { xs: '100%', md: 'fit-content' }
407
- }
408
- />
409
- )}
410
- {manufacturerNumber && (
411
- <ProductAttribute
412
- title={t('Manufacturer Number')}
413
- value={manufacturerNumber}
414
- width={
415
- brand || settings.brandName
416
- ? { xs: '49%', md: 'fit-content' }
417
- : { xs: '100%', md: 'fit-content' }
418
- }
419
- />
420
- )}
421
- {settings.warehouseVariant && (
422
- <>
423
- {settings.field.warehouseNumber && (
424
- <ProductAttribute
425
- title={
426
- get(dataItem, settings.field.warehouseNumber) ||
427
- settings.field.warehouseNumber
428
- }
429
- value={
430
- get(dataItem, settings.field.warehouseNumberValue) ||
431
- 'N/A'
432
- }
433
- width={{ xs: '49%', md: 'fit-content' }}
434
- />
435
- )}
436
- {settings.field.warehouseShelfNumber && (
437
- <ProductAttribute
438
- title={
439
- get(dataItem, settings.field.warehouseShelfNumber) ||
440
- settings.field.warehouseShelfNumber
441
- }
442
- value={
443
- get(
444
- dataItem,
445
- settings.field.warehouseShelfNumberValue,
446
- ) || 'N/A'
447
- }
448
- width={{ xs: '49%', md: 'fit-content' }}
449
- />
450
- )}
451
- </>
452
- )}
453
- </div>
454
-
455
- <Grid
456
- item
457
- xs={12}
458
- style={{
459
- backgroundColor: '#F3F3F5',
460
- }}
461
- >
462
- {settings.secondaryCTAButtonText && (
513
+
463
514
  <div
464
515
  style={{
465
- background: settings.theme.secondaryCTAButtonColor || '#2B2C46',
516
+ background: settings.theme?.CTAButtonColor || settings.theme?.primaryColor,
466
517
  boxShadow: '0px 4px 4px rgba(0, 0, 0, 0.25)',
467
518
  borderRadius: 4,
468
519
  marginTop: 8,
@@ -480,212 +531,169 @@ function ProductDetailView(props: Props) {
480
531
  width: '100%',
481
532
  padding: '0px 12px',
482
533
  minHeight: 64,
483
- cursor: secondaryCTALink ? 'pointer' : 'normal',
534
+ cursor: ctaLink ? 'pointer' : 'normal',
484
535
  }}
485
536
  onClick={() => {
486
- if (secondaryCTALink) {
487
- window.open(`${secondaryCTALink}`, '_blank');
537
+ if (ctaLink) {
538
+ window.open(`${ctaLink}`, '_blank');
488
539
  }
489
540
  }}
490
541
  >
491
542
  <Typography
492
- className="text-f18 fw-700 text-white max-line-2"
543
+ className="text-f18 fw-700 max-line-2"
493
544
  align="left"
494
545
  style={{
546
+ color: settings.theme?.CTAButtonTextColor || '#FFFFFF',
495
547
  letterSpacing: '0.55px',
496
548
  maxWidth: '500px',
497
549
  paddingRight: '4px',
498
550
  }}
499
551
  >
500
- {settings.secondaryCTAButtonText}
552
+ {settings.CTAButtonText
553
+ ? settings.CTAButtonText
554
+ : dataItem[settings.field.productName]}
501
555
  </Typography>
502
- {secondaryCTALink && <IconSettings color="white" />}
556
+ {ctaLink && (
557
+ <IconOpenLink fill={settings.theme?.CTAButtonTextColor || '#FFFFFF'} width={16} />
558
+ )}
503
559
  </div>
504
560
  </div>
505
- )}
506
-
507
- <div
508
- style={{
509
- background: settings.theme?.CTAButtonColor || settings.theme?.primaryColor,
510
- boxShadow: '0px 4px 4px rgba(0, 0, 0, 0.25)',
511
- borderRadius: 4,
512
- marginTop: 8,
513
- display: 'flex',
514
- justifyContent: 'space-between',
515
- alignItems: 'center',
516
- }}
517
- className="btn-detail-item"
518
- >
519
- <div
520
- style={{
521
- display: 'flex',
522
- justifyContent: 'space-between',
523
- alignItems: 'center',
524
- width: '100%',
525
- padding: '0px 12px',
526
- minHeight: 64,
527
- cursor: ctaLink ? 'pointer' : 'normal',
528
- }}
529
- onClick={() => {
530
- if (ctaLink) {
531
- window.open(`${ctaLink}`, '_blank');
532
- }
533
- }}
534
- >
535
- <Typography
536
- className="text-f18 fw-700 max-line-2"
537
- align="left"
538
- style={{
539
- color: settings.theme?.CTAButtonTextColor || '#FFFFFF',
540
- letterSpacing: '0.55px',
541
- maxWidth: '500px',
542
- paddingRight: '4px',
543
- }}
544
- >
545
- {settings.CTAButtonText
546
- ? settings.CTAButtonText
547
- : dataItem[settings.field.productName]}
548
- </Typography>
549
- {ctaLink && (
550
- <IconOpenLink fill={settings.theme?.CTAButtonTextColor || '#FFFFFF'} width={16} />
551
- )}
552
- </div>
553
- </div>
554
- {productDetails && (
555
- <div className="w-100">
556
- <Button
557
- className="w-100 button-hover"
558
- style={{
559
- backgroundColor: '#F3F3F5',
560
- color: settings.theme.mainTextColor || '#2b2c46',
561
- display: 'flex',
562
- fontSize: 14,
563
- justifyContent: 'space-between',
564
- marginTop: 12,
565
- paddingLeft: '15px',
566
- paddingRight: '15px',
567
- textTransform: 'initial',
568
- }}
569
- onClick={() => setCollapDescription(e => !e)}
570
- >
571
- {t('View details')}
572
- {collapDescription ? (
573
- <KeyboardArrowUpIcon
574
- htmlColor={settings.theme?.secondaryColor}
575
- />
576
- ) : (
577
- <KeyboardArrowDownIcon
578
- htmlColor={settings.theme?.secondaryColor}
579
- />
580
- )}
581
- </Button>
582
- <Collapse in={collapDescription}>
583
- <Typography
561
+ {productDetails && (
562
+ <div className="w-100">
563
+ <Button
564
+ className="w-100 button-hover"
584
565
  style={{
585
- fontSize: 14,
586
- padding: 5,
587
- paddingLeft: 15,
588
- paddingRight: 15,
566
+ backgroundColor: '#F3F3F5',
589
567
  color: settings.theme.mainTextColor || '#2b2c46',
568
+ display: 'flex',
569
+ fontSize: 14,
570
+ justifyContent: 'space-between',
571
+ marginTop: 12,
572
+ paddingLeft: '15px',
573
+ paddingRight: '15px',
574
+ textTransform: 'initial',
590
575
  }}
576
+ onClick={() => setCollapDescription(e => !e)}
591
577
  >
592
- {productDetails}
593
- </Typography>
594
- </Collapse>
595
- </div>
596
- )}
578
+ {t('View details')}
579
+ {collapDescription ? (
580
+ <KeyboardArrowUpIcon
581
+ htmlColor={settings.theme?.secondaryColor}
582
+ />
583
+ ) : (
584
+ <KeyboardArrowDownIcon
585
+ htmlColor={settings.theme?.secondaryColor}
586
+ />
587
+ )}
588
+ </Button>
589
+ <Collapse in={collapDescription}>
590
+ <Typography
591
+ style={{
592
+ fontSize: 14,
593
+ padding: 5,
594
+ paddingLeft: 15,
595
+ paddingRight: 15,
596
+ color: settings.theme.mainTextColor || '#2b2c46',
597
+ }}
598
+ >
599
+ {productDetails}
600
+ </Typography>
601
+ </Collapse>
602
+ </div>
603
+ )}
604
+ </Grid>
597
605
  </Grid>
598
- </Grid>
599
- </div>
600
-
601
- {settings.showFeedbackAndShare && (
602
- <div
603
- className="box-bottom"
604
- style={{
605
- height: '48px',
606
- padding: '0px 16px 0px 16px',
607
- marginBottom: 10,
608
- marginTop: 10,
609
- display: 'flex',
610
- justifyContent: 'center',
611
- }}
612
- >
613
- <Grid
614
- container
615
- justifyContent={
616
- settings.shareOption ? 'space-between' : 'space-around'
617
- }
618
- alignItems="center"
606
+ </div>
607
+
608
+ {settings.showFeedbackAndShare && (
609
+ <div
610
+ className="box-bottom"
611
+ style={{
612
+ height: '48px',
613
+ padding: '0px 16px 0px 16px',
614
+ marginBottom: 10,
615
+ marginTop: 10,
616
+ display: 'flex',
617
+ justifyContent: 'center',
618
+ }}
619
619
  >
620
- <Grid item>
621
- <div style={{ display: 'flex', alignItems: 'center' }}>
622
- <Button
623
- className="btn-item"
624
- onClick={() => {
625
- handlerFeedback('like');
626
- setFeedback('like');
627
- }}
628
- >
629
- <IconLike
630
- width={24}
631
- height={24}
632
- color={feedback === 'like' ? '#3E36DC' : '#000000'}
633
- />
634
- </Button>
635
- </div>
636
- </Grid>
637
- <Grid item>
638
- <div style={{ display: 'flex', alignItems: 'center' }}>
639
- <Button
640
- className="btn-item"
641
- onClick={() => {
642
- handlerFeedback('dislike');
643
- setFeedback('dislike');
644
- }}
645
- >
646
- <IconDisLike
647
- width={24}
648
- height={24}
649
- color={feedback === 'dislike' ? '#CC1854' : '#000000'}
650
- />
651
- </Button>
652
- </div>
653
- </Grid>
654
- {settings.shareOption && (
620
+ <Grid
621
+ container
622
+ justifyContent={
623
+ settings.shareOption ? 'space-between' : 'space-around'
624
+ }
625
+ alignItems="center"
626
+ >
655
627
  <Grid item>
656
628
  <div style={{ display: 'flex', alignItems: 'center' }}>
657
629
  <Button
658
630
  className="btn-item"
659
- onClick={() => onHandlerModalShare()}
631
+ onClick={() => {
632
+ handlerFeedback('like');
633
+ setFeedback('like');
634
+ }}
660
635
  >
661
- <IconShare width={24} height={24} color="#000000" />
636
+ <IconLike
637
+ width={24}
638
+ height={24}
639
+ color={feedback === 'like' ? '#3E36DC' : '#000000'}
640
+ />
662
641
  </Button>
663
642
  </div>
664
643
  </Grid>
665
- )}
666
- {/* <Grid item>
667
- <div display={'flex'} alignItems={'center'}>
668
- <Button className="btn-item">
669
- <div
670
- className=""
671
- display={'flex'}
672
- justifyContent={'center'}
673
- alignItems={'center'}
674
- >
675
- <img
676
- src={IconSupport}
677
- alt="image_item"
678
- className="icon_support"
679
- style={{ width: '30px' }}
680
- />
681
- </div>
682
- </Button>
644
+ <Grid item>
645
+ <div style={{ display: 'flex', alignItems: 'center' }}>
646
+ <Button
647
+ className="btn-item"
648
+ onClick={() => {
649
+ handlerFeedback('dislike');
650
+ setFeedback('dislike');
651
+ }}
652
+ >
653
+ <IconDisLike
654
+ width={24}
655
+ height={24}
656
+ color={feedback === 'dislike' ? '#CC1854' : '#000000'}
657
+ />
658
+ </Button>
659
+ </div>
660
+ </Grid>
661
+ {settings.shareOption && (
662
+ <Grid item>
663
+ <div style={{ display: 'flex', alignItems: 'center' }}>
664
+ <Button
665
+ className="btn-item"
666
+ onClick={() => onHandlerModalShare()}
667
+ >
668
+ <IconShare width={24} height={24} color="#000000" />
669
+ </Button>
670
+ </div>
671
+ </Grid>
672
+ )}
673
+ {/* <Grid item>
674
+ <div display={'flex'} alignItems={'center'}>
675
+ <Button className="btn-item">
676
+ <div
677
+ className=""
678
+ display={'flex'}
679
+ justifyContent={'center'}
680
+ alignItems={'center'}
681
+ >
682
+ <img
683
+ src={IconSupport}
684
+ alt="image_item"
685
+ className="icon_support"
686
+ style={{ width: '30px' }}
687
+ />
688
+ </div>
689
+ </Button>
690
+ </div>
691
+ </Grid> */}
692
+ </Grid>
683
693
  </div>
684
- </Grid> */}
685
- </Grid>
686
- </div>
687
- )}
688
- </div>
694
+ )}
695
+ </div>
696
+ )}
689
697
  </div>
690
698
  </div>
691
699
  );