aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/modals/account-modal-container.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/components/modals/account-modal-container.js')
-rw-r--r--ui/app/components/modals/account-modal-container.js19
1 files changed, 17 insertions, 2 deletions
diff --git a/ui/app/components/modals/account-modal-container.js b/ui/app/components/modals/account-modal-container.js
index 69650ca15..3cad72067 100644
--- a/ui/app/components/modals/account-modal-container.js
+++ b/ui/app/components/modals/account-modal-container.js
@@ -28,8 +28,13 @@ function AccountModalContainer () {
module.exports = connect(mapStateToProps, mapDispatchToProps)(AccountModalContainer)
AccountModalContainer.prototype.render = function () {
- const { selectedIdentity, children } = this.props
- console.log(`children`, children);
+ const {
+ selectedIdentity,
+ children,
+ showBackButton = false,
+ backButtonAction,
+ } = this.props
+
return h('div', { style: { borderRadius: '4px' }}, [
h('div.account-modal-container', [
@@ -44,6 +49,16 @@ AccountModalContainer.prototype.render = function () {
]),
+ showBackButton && h('div.account-modal-back', {
+ onClick: backButtonAction,
+ }, [
+
+ h('i.fa.fa-angle-left.fa-lg'),
+
+ h('span.account-modal-back__text', ' Back'),
+
+ ]),
+
h('div.account-modal-close', {
onClick: this.props.hideModal,
}),