-
-
BCH Balance
+ query {
+ bchWalletPlugins {
+ menuItems {
+ title
+ component
+ icon
+ }
+ }
+ }
+ `}
+ render={data => (
+ <>
+
+
+ -
+
+
+
BCH Balance
-
{_this.state.bchBalance}
-
-
-
-
- {_this.sidebar}
- {data.bchWalletPlugins.menuItems.map(item => )}
-
-
-
-
-
-
- {_this.state.section === "Wallet" && (
-
- )}
- {_this.state.section === "Tokens" &&
-
- }
- {_this.state.section === "Configure" && (
-
- )}
- {data.bchWalletPlugins.menuItems.map(item =>
- _this.state.section === item.title &&
- )}
+
{_this.state.bchBalance}
-
-
-
-
-
- >
- }/>
+
+
+ {_this.sidebar}
+ {data.bchWalletPlugins.menuItems.map(item => (
+
+ ))}
+
+
+
+
+
+
+ {_this.state.section === "Send/Receive" && (
+
+ )}
+ {_this.state.section === "Tokens" && (
+
+ )}
+ {_this.state.section === "Wallet" && (
+
+ )}
+
+ {_this.state.section === "Configure" && (
+
+ )}
+ {data.bchWalletPlugins.menuItems.map(
+ item =>
+ _this.state.section === item.title && (
+
+ )
+ )}
+
+
+
+
+
+
+ >
+ )}
+ />
)
}
// Get wallet balance
@@ -130,7 +150,6 @@ class AdminLTEPage extends React.Component {
try {
const { mnemonic } = _this.props.walletInfo
if (mnemonic && _this.props.bchWallet) {
-
const bchWalletLib = _this.props.bchWallet
await bchWalletLib.walletInfoPromise
@@ -273,7 +292,7 @@ AdminLTEPage.propTypes = {
setWalletInfo: PropTypes.func.isRequired, // set wallet info
updateBalance: PropTypes.func.isRequired, // update bch balance
setBchWallet: PropTypes.func.isRequired, // set minimal-slp-wallet instance
- bchWallet:PropTypes.object, // get minimal-slp-wallet instance
+ bchWallet: PropTypes.object, // get minimal-slp-wallet instance
}
export default AdminLTEPage