Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
Merge pull request #93 from brave/fix-links
Browse files Browse the repository at this point in the history
Pointing to Brave support articles
  • Loading branch information
ryanml committed Dec 15, 2019
2 parents ed1fd93 + b36592a commit 46c07c6
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 0 deletions.
6 changes: 6 additions & 0 deletions brave/gulpfile.js/brave-replace-paths.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,12 @@ const createBraveReplacePathsTask = () => {
`'${bravePrefix}app/scripts/controllers/threebox'`
)
)
.pipe(
replace(
/'(.*)\/confirm-remove-account\.component'/gm,
`'${bravePrefix}ui/app/components/app/modals/confirm-remove-account/confirm-remove-account.component'`
)
)
.pipe(gulp.dest(file => file.base))
})
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import React from 'react'
import Modal from '../../../../../../../ui/app/components/app/modal'
import ConfirmRemoveAccount from '../../../../../../../ui/app/components/app/modals/confirm-remove-account/confirm-remove-account.component'

module.exports = class BraveConfirmRemoveAccount extends ConfirmRemoveAccount {

render () {
const { t } = this.context

return (
<Modal
headerText={`${t('removeAccount')}?`}
onClose={this.handleCancel}
onSubmit={this.handleRemove}
onCancel={this.handleCancel}
submitText={t('remove')}
cancelText={t('nevermind')}
submitType="secondary"
>
<div>
{ this.renderSelectedAccount() }
<div className="confirm-remove-account__description">
{ t('removeAccountDescription') }
<a
className="confirm-remove-account__link"
rel="noopener noreferrer"
target="_blank"
href="https://support.brave.com/hc/en-us/articles/360035488071-How-do-I-manage-my-Crypto-Wallets-"
>
{ t('learnMore') }
</a>
</div>
</div>
</Modal>
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,19 @@ module.exports = class BraveConnectScreen extends ConnectScreen {
/>
)
}

renderFooter () {
return (
<div className="hw-connect__footer">
<h3 className="hw-connect__footer__title">{this.context.t('readyToConnect')}</h3>
{this.renderButtons()}
<p className="hw-connect__footer__msg">
{this.context.t('havingTroubleConnecting')}
<a className="hw-connect__footer__link" href="https://support.brave.com/hc/en-us/articles/360034535452-How-can-I-add-my-other-Crypto-Wallets-to-Brave-" target="_blank" rel="noopener noreferrer">
{this.context.t('getHelp')}
</a>
</p>
</div>
)
}
}

0 comments on commit 46c07c6

Please sign in to comment.