- {t("emptyBody")} -
+{t("emptyBody")}
{campaign.description}
@@ -293,12 +283,6 @@ function CauseCard({ ); } -/** - * Memoized so a list of cards does not re-render wholesale when unrelated - * global state changes (#648). Cards are rendered in long lists, so this is - * where an unnecessary render is most expensive. - */ -export default memo(CauseCard); function causeCardPropsAreEqual(prev: CauseCardProps, next: CauseCardProps): boolean { const prevCampaign = prev.campaign; const nextCampaign = next.campaign; diff --git a/src/components/ContributorLeaderboard.tsx b/src/components/ContributorLeaderboard.tsx index fa75cc53..1472fcb6 100644 --- a/src/components/ContributorLeaderboard.tsx +++ b/src/components/ContributorLeaderboard.tsx @@ -85,9 +85,7 @@ export default function ContributorLeaderboard({ {contributors.length === 0 ? (- {t("emptyMessage")} -
+{t("emptyMessage")}
{item.truncatedAddress}
{(() => {
- const amountXlm = item.totalAmountStroops ? Number(item.totalAmountStroops) / 10_000_000 : 0;
+ const amountXlm = item.totalAmountStroops
+ ? Number(item.totalAmountStroops) / 10_000_000
+ : 0;
const profile = calculateGamificationProfile(amountXlm);
return (
@@ -164,9 +164,7 @@ export default function ContributorLeaderboard({
{t("donatedSuccess", { amount: amountNum })}
- {isRecurring && ( -- {INTERVAL_LABELS[recurringInterval]} donation set up. We'll remind you when the - next one is due. -
- )}{t("thankYou")}