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

Pointing to Brave support articles #93

Merged
merged 1 commit into from
Dec 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>
)
}
}