diff --git a/browser/ui/webui/brave_rewards/rewards_page_data_source.cc b/browser/ui/webui/brave_rewards/rewards_page_data_source.cc index f9d57861236..45a7b341dfe 100644 --- a/browser/ui/webui/brave_rewards/rewards_page_data_source.cc +++ b/browser/ui/webui/brave_rewards/rewards_page_data_source.cc @@ -247,7 +247,6 @@ static constexpr webui::LocalizedString kStrings[] = { {"payoutPendingText", IDS_REWARDS_PAYMENT_PENDING}, {"payoutProcessingText", IDS_REWARDS_PAYMENT_PROCESSING}, {"payoutSupportLink", IDS_REWARDS_PAYMENT_SUPPORT}, - {"recurringListEmptyText", IDS_REWARDS_RECURRING_LIST_EMPTY_TEXT}, {"recurringNextContributionLabel", IDS_REWARDS_RECURRING_NEXT_CONTRIBUTION_LABEL}, {"recurringTitle", IDS_REWARDS_RECURRING_TITLE}, diff --git a/components/brave_rewards/resources/rewards_page/components/explore/explore_view.style.ts b/components/brave_rewards/resources/rewards_page/components/explore/explore_view.style.ts index 3feee2cc478..d2c0caedb70 100644 --- a/components/brave_rewards/resources/rewards_page/components/explore/explore_view.style.ts +++ b/components/brave_rewards/resources/rewards_page/components/explore/explore_view.style.ts @@ -11,6 +11,10 @@ export const style = scoped.css` display: flex; flex-direction: column; gap: 8px; + + @container style(--is-wide-view) { + gap: 24px; + } } .loading { diff --git a/components/brave_rewards/resources/rewards_page/components/home/recurring_contribution_card.style.ts b/components/brave_rewards/resources/rewards_page/components/home/recurring_contribution_card.style.ts index aa536131bbd..d6e4a8c0c43 100644 --- a/components/brave_rewards/resources/rewards_page/components/home/recurring_contribution_card.style.ts +++ b/components/brave_rewards/resources/rewards_page/components/home/recurring_contribution_card.style.ts @@ -99,12 +99,6 @@ export const style = scoped.css` } } - .empty { - margin: 24px 0; - text-align: center; - color: ${color.text.secondary}; - } - .show-all { text-align: center; } diff --git a/components/brave_rewards/resources/rewards_page/components/home/recurring_contribution_card.tsx b/components/brave_rewards/resources/rewards_page/components/home/recurring_contribution_card.tsx index f60f86e6af9..132b6638087 100644 --- a/components/brave_rewards/resources/rewards_page/components/home/recurring_contribution_card.tsx +++ b/components/brave_rewards/resources/rewards_page/components/home/recurring_contribution_card.tsx @@ -92,10 +92,6 @@ export function RecurringContributionCard() { } function renderList() { - if (contributions.length === 0) { - return

{getString('recurringListEmptyText')}

- } - const topEntries = [...contributions] .sort((a, b) => a.nextContributionDate - b.nextContributionDate) .slice(0, showAll ? Infinity : 5) @@ -119,6 +115,10 @@ export function RecurringContributionCard() { return null } + if (contributions.length === 0) { + return null + } + return (

{getString('recurringTitle')}

diff --git a/components/brave_rewards/resources/rewards_page/lib/locale_strings.ts b/components/brave_rewards/resources/rewards_page/lib/locale_strings.ts index dcb8013c445..43c51b317bc 100644 --- a/components/brave_rewards/resources/rewards_page/lib/locale_strings.ts +++ b/components/brave_rewards/resources/rewards_page/lib/locale_strings.ts @@ -173,7 +173,6 @@ export type StringKey = 'payoutPendingText' | 'payoutProcessingText' | 'payoutSupportLink' | - 'recurringListEmptyText' | 'recurringNextContributionLabel' | 'recurringTitle' | 'removeButtonLabel' | diff --git a/components/brave_rewards/resources/rewards_page/stories/storybook_strings.ts b/components/brave_rewards/resources/rewards_page/stories/storybook_strings.ts index 22d9153617b..9d449c0362c 100644 --- a/components/brave_rewards/resources/rewards_page/stories/storybook_strings.ts +++ b/components/brave_rewards/resources/rewards_page/stories/storybook_strings.ts @@ -171,7 +171,6 @@ export const localeStrings: { [K in StringKey]: string } = { payoutPendingText: 'The payout for $1 rewards will begin processing by $2.', payoutProcessingText: 'The payout for $1 rewards is in progress.', payoutSupportLink: 'Support', - recurringListEmptyText: 'You don\'t have any recurring contributions set up yet.', recurringNextContributionLabel: 'Next contribution:', recurringTitle: 'Recurring Contributions', removeButtonLabel: 'Remove', diff --git a/components/resources/rewards_strings.grdp b/components/resources/rewards_strings.grdp index 4246e712925..52923e4e6f3 100644 --- a/components/resources/rewards_strings.grdp +++ b/components/resources/rewards_strings.grdp @@ -825,9 +825,6 @@ Your benefits - - You don't have any recurring contributions set up yet. - Next contribution: