From fc885d02dc5f56206bd9fb4250aff9315f1d394d Mon Sep 17 00:00:00 2001 From: Syed Sajjad Hussain Shah Date: Wed, 6 Sep 2023 17:20:53 +0500 Subject: [PATCH] fix: recommendations card design and painted door eventing --- src/widgets/RecommendationsPaintedDoorBtn/track.js | 8 ++++---- src/widgets/RecommendationsPaintedDoorBtn/track.test.js | 2 +- src/widgets/RecommendationsPanel/components/index.scss | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/widgets/RecommendationsPaintedDoorBtn/track.js b/src/widgets/RecommendationsPaintedDoorBtn/track.js index d201a013..304e127d 100644 --- a/src/widgets/RecommendationsPaintedDoorBtn/track.js +++ b/src/widgets/RecommendationsPaintedDoorBtn/track.js @@ -12,24 +12,24 @@ export const trackPaintedDoorVariationGroup = (variation) => { createEventTracker(eventNames.variationGroup, { variation, page: 'dashboard', - }); + })(); }; export const trackPaintedDoorRecommendationHomeBtnClicked = (variation) => { createEventTracker(eventNames.recommendationHomeBtnClicked, { variation, page: 'dashboard', - }); + })(); }; export const trackPaintedDoorRecommendationHomeInterestBtnClicked = (variation) => { createEventTracker(eventNames.recommendationHomeModalInterestBtnClicked, { variation, - }); + })(); }; export const trackPaintedDoorRecommendationHomeSkipBtnClicked = (variation) => { createEventTracker(eventNames.recommendationHomeModalSkipBtnClicked, { variation, - }); + })(); }; diff --git a/src/widgets/RecommendationsPaintedDoorBtn/track.test.js b/src/widgets/RecommendationsPaintedDoorBtn/track.test.js index e2366630..de912009 100644 --- a/src/widgets/RecommendationsPaintedDoorBtn/track.test.js +++ b/src/widgets/RecommendationsPaintedDoorBtn/track.test.js @@ -8,7 +8,7 @@ import { } from './track'; jest.mock('data/services/segment/utils', () => ({ - createEventTracker: jest.fn((args) => ({ createEventTracker: args })), + createEventTracker: jest.fn(() => () => {}), })); const TEST_VARIATION = 'testVariation'; diff --git a/src/widgets/RecommendationsPanel/components/index.scss b/src/widgets/RecommendationsPanel/components/index.scss index ae74d9a2..2cc23758 100644 --- a/src/widgets/RecommendationsPanel/components/index.scss +++ b/src/widgets/RecommendationsPanel/components/index.scss @@ -23,7 +23,7 @@ } } .pgn__card-section { - padding: 0; + padding: 0 !important; } margin-top: 0.313rem; }