From 2d3a6427f59b93fb3452aab7e4bbbae969fc704b Mon Sep 17 00:00:00 2001 From: Muhammed Mustafa Date: Thu, 6 Jul 2023 16:26:11 +0300 Subject: [PATCH] refactor(client): clean extra component (#50893) --- client/src/components/Donation/donation-modal.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/client/src/components/Donation/donation-modal.tsx b/client/src/components/Donation/donation-modal.tsx index c81fe4e06bf..3d4bced278d 100644 --- a/client/src/components/Donation/donation-modal.tsx +++ b/client/src/components/Donation/donation-modal.tsx @@ -52,11 +52,6 @@ type DonateModalProps = { show: boolean; }; -const GetCommonDonationText = ({ ctaNumber }: { ctaNumber: number }) => { - const { t } = useTranslation(); - return {t(`donate.progress-modal-cta-${ctaNumber}`)}; -}; - const RenderIlustration = ({ recentlyClaimedBlock }: { @@ -155,7 +150,7 @@ function DonateModal({ })} )} - + {t(`donate.progress-modal-cta-${ctaNumber}`)} )}