Skip to content

Commit

Permalink
Merge pull request #1170 from brave/add-funds-link
Browse files Browse the repository at this point in the history
Adds add funds link to the site banner
  • Loading branch information
NejcZdovc authored Dec 31, 2018
2 parents 3a4c91a + 030989a commit 06f591e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ class Banner extends React.Component<Props, State> {
return result
}

get addFundsLink () {
return 'brave://rewards/#add-funds'
}

render () {
const { publisher, walletInfo, recurringList } = this.props.rewardsDonateData
const { balance } = walletInfo
Expand Down Expand Up @@ -155,6 +159,7 @@ class Banner extends React.Component<Props, State> {
social={this.generateSocialLinks()}
showUnVerifiedNotice={!verified}
learnMoreNotice={'https://brave.com/faq-rewards/#unclaimed-funds'}
addFundsLink={this.addFundsLink}
>
{description}
</SiteBanner>
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 @@ -272,7 +272,7 @@
"@types/react-dom": "^16.0.7",
"@types/react-redux": "6.0.4",
"awesome-typescript-loader": "^5.2.0",
"brave-ui": "github:brave/brave-ui#8bdb9b173ebe46ed9633dbfc36eaffc5550b31c0",
"brave-ui": "github:brave/brave-ui#0ef71e2127af947ff7f2e6e830cc61dfac360123",
"css-loader": "^0.28.9",
"csstype": "^2.5.5",
"emptykit.css": "^1.0.1",
Expand Down

0 comments on commit 06f591e

Please sign in to comment.