Skip to content

Commit

Permalink
Merge pull request #9867 from brave/fee_disclaimer
Browse files Browse the repository at this point in the history
Fix #17692 - Add messaging in the UI about 5% tipping fee when tipping
  • Loading branch information
jumde authored Aug 27, 2021
2 parents 79c93ab + 3cddd6f commit afc3f1a
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions browser/ui/webui/brave_webui_source.cc
Original file line number Diff line number Diff line change
Expand Up @@ -968,6 +968,7 @@ void CustomizeWebUIHTMLSource(const std::string &name,
{ "monthlyText", IDS_BRAVE_UI_MONTHLY_TEXT },
{ "nextContributionDate", IDS_BRAVE_REWARDS_TIP_NEXT_CONTRIBUTION_DATE }, // NOLINT
{ "notEnoughTokens", IDS_BRAVE_REWARDS_TIP_NOT_ENOUGH_TOKENS },
{ "tippingFeeNote", IDS_BRAVE_REWARDS_TIPPING_FEE_NOTE },
{ "on", IDS_BRAVE_UI_ON },
{ "onboardingMaybeLater", IDS_BRAVE_REWARDS_ONBOARDING_MAYBE_LATER },
{ "onboardingSetupAdsHeader", IDS_BRAVE_REWARDS_ONBOARDING_SETUP_ADS_HEADER }, // NOLINT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,10 @@ export const notEnoughFunds = styled.div`
color: var(--brave-palette-neutral300);
}
`

export const feeNote = styled.div`
text-align: center;
font-size: 11px;
line-height: 16px;
color: var(--brave-palette-neutral600);
`
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@ export function BatTipForm (props: Props) {
</style.main>
<style.footer>
<style.terms>
<style.feeNote>
{getString('tippingFeeNote')}
</style.feeNote>
<TermsOfService />
</style.terms>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export const localeStrings = {
thanksForTheSupport: 'Thanks for the support!',
tipDelayNote: 'Note: Your tip can take several minutes to process',
tipHasBeenSent: 'Your one-time tip has been sent.',
tippingFeeNote: 'Brave collects 5% of the tip amount as a processing fee.',
tipPostSubtitle: 'for their post',
tokens: 'tokens',
tweetAboutSupport: 'Tweet about your support',
Expand Down
1 change: 1 addition & 0 deletions components/resources/brave_components_strings.grd
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,7 @@
<message name="IDS_BRAVE_REWARDS_TIP_MONTHLY_CONTRIBUTION_SET" desc="">Monthly contribution has been set.</message>
<message name="IDS_BRAVE_REWARDS_TIP_NEXT_CONTRIBUTION_DATE" desc="">Next contribution date:</message>
<message name="IDS_BRAVE_REWARDS_TIP_NOT_ENOUGH_TOKENS" desc="">Not enough tokens. Please <ph name="LINK_BEGIN">$1</ph>add funds<ph name="LINK_END">$2</ph>.</message>
<message name="IDS_BRAVE_REWARDS_TIPPING_FEE_NOTE" desc="">Brave collects 5% of the tip amount as a processing fee.</message>
<message name="IDS_BRAVE_REWARDS_TIP_ONE_TIME_TIP" desc="">One-Time Tip</message>
<message name="IDS_BRAVE_REWARDS_TIP_ONE_TIME_TIP_AMOUNT" desc="">One-time tip amount:</message>
<message name="IDS_BRAVE_REWARDS_TIP_OPT_IN_REQUIRED" desc="">Hold on, you can’t tip yet</message>
Expand Down

0 comments on commit afc3f1a

Please sign in to comment.