Merge pull request #52 from Permissionless-Software-Foundation/ct-unstable

fix(Wallet View): Adding hook for imported components
This commit is contained in:
Chris Troutner
2020-08-12 08:15:48 -07:00
committed by GitHub
2 changed files with 5 additions and 1 deletions
+3 -1
View File
@@ -5,7 +5,6 @@ import MenuComponents from './menu-components'
import Servers from './servers'
import JsonWebTokens from './jwt'
import ConfigureInfo from './info'
import TabsMenu from './TabsMenu'
const BchWallet = typeof window !== 'undefined' ? window.SlpWallet : null
@@ -32,6 +31,7 @@ class Configure extends React.Component {
return (
<Content>
<TabsMenu onSelect={this.handleSelect} />
// Default View
{_this.state.menuItem === 'Configure' && (
<>
<ConfigureInfo />
@@ -49,6 +49,8 @@ class Configure extends React.Component {
/>
</>
)}
// Load Plugin Views
{_this.state.menuItem !== 'Configure' &&
MenuComponents.filter(
menuItem => menuItem.key === _this.state.menuItem
+2
View File
@@ -38,6 +38,8 @@ class Wallet extends React.Component {
/>
<InfoWallets />
{this.props.importComponents}
</Content>
</>
)