Skip to content

Commit

Permalink
Merge pull request #3322 from brave/connected-popup
Browse files Browse the repository at this point in the history
Adds options for connected state
  • Loading branch information
NejcZdovc authored Sep 2, 2019
2 parents f9e1c47 + b36edcc commit d225260
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 3 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 @@ -497,6 +497,7 @@ void CustomizeWebUIHTMLSource(const std::string &name,
{ "walletButtonUnverified", IDS_BRAVE_UI_WALLET_BUTTON_UNVERIFIED },
{ "walletButtonVerified", IDS_BRAVE_UI_WALLET_BUTTON_VERIFIED },
{ "walletGoToUphold", IDS_BRAVE_UI_WALLET_GO_TO_UPHOLD },
{ "walletGoToVerifyPage", IDS_BRAVE_UI_WALLET_GO_TO_VERIFY_PAGE },
{ "walletDisconnect", IDS_BRAVE_UI_WALLET_DISCONNECT },
{ "walletVerificationButton", IDS_BRAVE_UI_WALLET_VERIFICATION_BUTTON },
{ "walletVerificationFooter", IDS_BRAVE_UI_WALLET_VERIFICATION_FOOTER },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -532,5 +532,9 @@
"connectedText": {
"message": "This creator has not yet signed up to receive contributions from Brave users. Any tips you send will remain in your wallet until they verify.",
"description": "Text shown for connected publishers that are not fully verified in the panel"
},
"walletGoToVerifyPage": {
"message": "Complete wallet verification",
"description": "CTA for completing wallet verification"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,9 @@ export class Panel extends React.Component<Props, State> {
}

switch (externalWallet.status) {
// ledger::WalletStatus::CONNECTED
case 1:
return 'connected'
// ledger::WalletStatus::VERIFIED
case 2:
return 'verified'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,9 @@ class PageWallet extends React.Component<Props, State> {
}

switch (externalWallet.status) {
// ledger::WalletStatus::CONNECTED
case 1:
return 'connected'
// WalletStatus::VERIFIED
case 2:
return 'verified'
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 @@ -574,6 +574,7 @@
<message name="IDS_BRAVE_UI_WALLET_BUTTON_UNVERIFIED" desc="">Verify Wallet</message>
<message name="IDS_BRAVE_UI_WALLET_BUTTON_VERIFIED" desc="">Verified</message>
<message name="IDS_BRAVE_UI_WALLET_GO_TO_UPHOLD" desc="">Go to my Uphold account</message>
<message name="IDS_BRAVE_UI_WALLET_GO_TO_VERIFY_PAGE" desc="CTA for completing wallet verification">Complete wallet verification</message>
<message name="IDS_BRAVE_UI_WALLET_DISCONNECT" desc="">Disconnect from Brave Rewards</message>
<message name="IDS_BRAVE_UI_WALLET_VERIFICATION_BUTTON" desc="">Verify wallet</message>
<message name="IDS_BRAVE_UI_WALLET_VERIFICATION_FOOTER" desc="">Our wallet service is provided by</message>
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@
"@types/storybook__react": "^4.0.2",
"awesome-typescript-loader": "^5.2.1",
"babel-loader": "^8.0.6",
"brave-ui": "github:brave/brave-ui#993fca92ded27730754611d2eed308cf261232c7",
"brave-ui": "github:brave/brave-ui#548aaa3f15ba4a64506d636db6f77ccea71c713c",
"css-loader": "^2.1.1",
"csstype": "^2.5.5",
"deep-freeze-node": "^1.1.3",
Expand Down

0 comments on commit d225260

Please sign in to comment.