diff --git a/browser/ui/webui/brave_webui_source.cc b/browser/ui/webui/brave_webui_source.cc index f2ff10b63a24..3f274f0489ca 100644 --- a/browser/ui/webui/brave_webui_source.cc +++ b/browser/ui/webui/brave_webui_source.cc @@ -357,6 +357,7 @@ void CustomizeWebUIHTMLSource(const std::string &name, { "amount", IDS_BRAVE_UI_AMOUNT }, { "backup", IDS_BRAVE_UI_BACKUP }, { "braveAdsDesc", IDS_BRAVE_UI_BRAVE_ADS_DESC }, + { "braveAdsDescPoints", IDS_BRAVE_UI_BRAVE_ADS_DESC_POINTS }, { "braveAdsLaunchMsg", IDS_BRAVE_UI_BRAVE_ADS_LAUNCH_MSG }, { "braveAdsLaunchTitle", IDS_BRAVE_UI_BRAVE_ADS_LAUNCH_TITLE }, { "braveAdsTitle", IDS_BRAVE_UI_BRAVE_ADS_TITLE }, diff --git a/components/brave_rewards/resources/page/components/app.tsx b/components/brave_rewards/resources/page/components/app.tsx index 5e50d5e5319e..df9ab9036269 100644 --- a/components/brave_rewards/resources/page/components/app.tsx +++ b/components/brave_rewards/resources/page/components/app.tsx @@ -41,6 +41,7 @@ export class App extends React.Component { this.props.actions.onAdsSettingSave('adsEnabledMigrated', adsEnabled) } } + this.props.actions.onlyAnonWallet() } componentDidUpdate (prevProps: Props, prevState: State) { @@ -75,7 +76,8 @@ export class App extends React.Component { } render () { - const { walletCreated, walletCreateFailed } = this.props.rewardsData + const { walletCreated, walletCreateFailed, ui } = this.props.rewardsData + const { onlyAnonWallet } = ui let props: {onReTry?: () => void} = {} @@ -91,6 +93,7 @@ export class App extends React.Component { !walletCreated ? { this.actions.onSettingSave('firstLoad', false) } - this.actions.onlyAnonWallet() this.actions.getWalletProperties() this.actions.getBalance() this.balanceTimerId = setInterval(() => { diff --git a/components/brave_rewards/resources/ui/components/welcomePage/index.tsx b/components/brave_rewards/resources/ui/components/welcomePage/index.tsx index 2863811e4612..05bb3cba9622 100644 --- a/components/brave_rewards/resources/ui/components/welcomePage/index.tsx +++ b/components/brave_rewards/resources/ui/components/welcomePage/index.tsx @@ -56,6 +56,7 @@ export interface Props { id?: string optInAction: () => void creating?: boolean + onlyAnonWallet?: boolean onReTry?: () => void onTOSClick?: () => void onPrivacyClick?: () => void @@ -212,7 +213,8 @@ class WelcomePage extends React.PureComponent { ) } - get infoCards (): CardProps[] { + infoCards = (): CardProps[] => { + const { onlyAnonWallet } = this.props return [ { title: getLocale('turnOnRewardsTitle'), @@ -221,7 +223,7 @@ class WelcomePage extends React.PureComponent { }, { title: getLocale('braveAdsTitle'), - description: getLocale('braveAdsDesc'), + description: onlyAnonWallet ? getLocale('braveAdsDescPoints') : getLocale('braveAdsDesc'), icon: }, { @@ -265,7 +267,7 @@ class WelcomePage extends React.PureComponent { diff --git a/components/resources/brave_components_strings.grd b/components/resources/brave_components_strings.grd index f8544a6f5aa7..f5adff8f4176 100644 --- a/components/resources/brave_components_strings.grd +++ b/components/resources/brave_components_strings.grd @@ -353,6 +353,7 @@ Amount Backup Get paid to view relevant ads that respect your privacy. + Collect points when you view relevant ads that respect your privacy. Now you can earn by viewing ads. Brave Ads has arrived! Ads diff --git a/components/test/brave_rewards/page/components/app_test.tsx b/components/test/brave_rewards/page/components/app_test.tsx index 651043dcc484..470032fe5417 100644 --- a/components/test/brave_rewards/page/components/app_test.tsx +++ b/components/test/brave_rewards/page/components/app_test.tsx @@ -47,7 +47,8 @@ describe('rewardsPage component', () => { const wrapper = shallow( false + checkWalletExistence: () => false, + onlyAnonWallet: () => false }} rewardsData={rewardsInitialState.rewardsData as Rewards.State} />