diff --git a/client/src/assets/icons/cup.tsx b/client/src/assets/icons/cup.tsx new file mode 100644 index 00000000000..6d58423a0fd --- /dev/null +++ b/client/src/assets/icons/cup.tsx @@ -0,0 +1,60 @@ +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 new file mode 100644 index 00000000000..6e5678ee2a7 --- /dev/null +++ b/client/src/assets/icons/heart.tsx @@ -0,0 +1,40 @@ +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 e8e2c912e4b..3d4bced278d 100644 --- a/client/src/components/Donation/donation-modal.tsx +++ b/client/src/components/Donation/donation-modal.tsx @@ -8,6 +8,8 @@ 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'; @@ -55,11 +57,20 @@ const RenderIlustration = ({ }: { recentlyClaimedBlock: RecentlyClaimedBlock; }) => { - return recentlyClaimedBlock ? ( - - ) : ( - - ); + const showModalBears = useFeature('show-modal-bears').on; + if (showModalBears) { + return recentlyClaimedBlock ? ( + + ) : ( + + ); + } else { + return recentlyClaimedBlock ? ( + + ) : ( + + ); + } }; function getctaNumberBetween1To10() {