-
Notifications
You must be signed in to change notification settings - Fork 879
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rewards 2.5 phase 4 #16710
Rewards 2.5 phase 4 #16710
Conversation
|
1 similar comment
|
|
A Storybook has been deployed to preview UI for the latest push |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
iOS++
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks awesome, just had two really minor nits.
components/brave_rewards/resources/shared/components/vbat_notice.tsx
Outdated
Show resolved
Hide resolved
components/brave_rewards/resources/rewards_panel/components/vbat_notice_modal.style.ts
Outdated
Show resolved
Hide resolved
|
3ffd71f
to
e222227
Compare
A Storybook has been deployed to preview UI for the latest push |
@@ -644,6 +645,12 @@ void BraveRewardsGetRewardsParametersFunction::OnGetRewardsParameters( | |||
} | |||
data.Set("walletProviderRegions", std::move(provider_regions)); | |||
|
|||
if (!parameters->vbat_deadline.is_null()) { | |||
data.Set("vbatDeadline", floor(parameters->vbat_deadline.ToDoubleT() * |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: it is recommended when using base::Value
to use the helpers in //base/json/values_util.h
for serialization
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See TimeToValue and ValueToTime
Resolves brave/brave-browser#27882
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
wikinpm run lint
,npm run presubmit
wiki,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan: