From 99e91f2cfc5ccd3b252c10b86298d5b32fc7b3ea Mon Sep 17 00:00:00 2001 From: Ahmad Abdolsaheb Date: Wed, 12 Jul 2023 18:39:01 +0300 Subject: [PATCH] feat: accept modal bears AB test (#50954) --- client/src/assets/icons/cup.tsx | 60 ------------------- client/src/assets/icons/heart.tsx | 40 ------------- .../components/Donation/donation-modal.tsx | 21 ++----- 3 files changed, 5 insertions(+), 116 deletions(-) delete mode 100644 client/src/assets/icons/cup.tsx delete mode 100644 client/src/assets/icons/heart.tsx diff --git a/client/src/assets/icons/cup.tsx b/client/src/assets/icons/cup.tsx deleted file mode 100644 index 6d58423a0fd..00000000000 --- a/client/src/assets/icons/cup.tsx +++ /dev/null @@ -1,60 +0,0 @@ -import React from 'react'; -import { useTranslation } from 'react-i18next'; - -function Cup( - props: JSX.IntrinsicAttributes & React.SVGProps -): JSX.Element { - const { t } = useTranslation(); - - return ( - <> - {t('icons.gold-cup')} - - {t('icons.gold-cup')} - - - - - - - - - - - - - - - - - ); -} - -Cup.displayName = 'Cup'; - -export default Cup; diff --git a/client/src/assets/icons/heart.tsx b/client/src/assets/icons/heart.tsx deleted file mode 100644 index 6e5678ee2a7..00000000000 --- a/client/src/assets/icons/heart.tsx +++ /dev/null @@ -1,40 +0,0 @@ -import React from 'react'; -import { useTranslation } from 'react-i18next'; - -function Heart( - props: JSX.IntrinsicAttributes & React.SVGProps -): JSX.Element { - const { t } = useTranslation(); - - return ( - <> - {t('icons.heart')} - - - - - - - - - - - ); -} - -Heart.displayName = 'Heart'; - -export default Heart; diff --git a/client/src/components/Donation/donation-modal.tsx b/client/src/components/Donation/donation-modal.tsx index 3d4bced278d..e8e2c912e4b 100644 --- a/client/src/components/Donation/donation-modal.tsx +++ b/client/src/components/Donation/donation-modal.tsx @@ -8,8 +8,6 @@ import { goToAnchor } from 'react-scrollable-anchor'; import { bindActionCreators, Dispatch, AnyAction } from 'redux'; import { createSelector } from 'reselect'; import { PaymentContext } from '../../../../config/donation-settings'; -import Cup from '../../assets/icons/cup'; -import Heart from '../../assets/icons/heart'; import BearProgressModal from '../../assets/images/components/bear-progress-modal'; import BearBlockCompletion from '../../assets/images/components/bear-block-completion-modal'; @@ -57,20 +55,11 @@ const RenderIlustration = ({ }: { recentlyClaimedBlock: RecentlyClaimedBlock; }) => { - const showModalBears = useFeature('show-modal-bears').on; - if (showModalBears) { - return recentlyClaimedBlock ? ( - - ) : ( - - ); - } else { - return recentlyClaimedBlock ? ( - - ) : ( - - ); - } + return recentlyClaimedBlock ? ( + + ) : ( + + ); }; function getctaNumberBetween1To10() {