mirror of
https://github.com/fullstack-cash/fullstack-gatsby-theme-bch-wallet.git
synced 2026-09-22 17:22:05 -07:00
Merge pull request #52 from Permissionless-Software-Foundation/ct-unstable
fix(Wallet View): Adding hook for imported components
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -38,6 +38,8 @@ class Wallet extends React.Component {
|
||||
/>
|
||||
|
||||
<InfoWallets />
|
||||
|
||||
{this.props.importComponents}
|
||||
</Content>
|
||||
</>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user