mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-10 09:05:55 -05:00
refactor(client): clean extra component (#50893)
This commit is contained in:
@@ -52,11 +52,6 @@ type DonateModalProps = {
|
||||
show: boolean;
|
||||
};
|
||||
|
||||
const GetCommonDonationText = ({ ctaNumber }: { ctaNumber: number }) => {
|
||||
const { t } = useTranslation();
|
||||
return <b>{t(`donate.progress-modal-cta-${ctaNumber}`)}</b>;
|
||||
};
|
||||
|
||||
const RenderIlustration = ({
|
||||
recentlyClaimedBlock
|
||||
}: {
|
||||
@@ -155,7 +150,7 @@ function DonateModal({
|
||||
})}
|
||||
</b>
|
||||
)}
|
||||
<GetCommonDonationText ctaNumber={ctaNumber} />
|
||||
<b>{t(`donate.progress-modal-cta-${ctaNumber}`)}</b>
|
||||
</Col>
|
||||
)}
|
||||
</Row>
|
||||
|
||||
Reference in New Issue
Block a user