From 6162119aa9c6bf12cfa3f5b1f96ed41e6a33f7e9 Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Wed, 2 Feb 2022 16:18:42 -0800 Subject: [PATCH 1/3] fix(config): Setting API interface in site-config.js --- src/components/admin-lte/wallet/create.js | 61 +++++++++---------- src/components/admin-lte/wallet/import.js | 71 ++++++++++++----------- src/components/site-config.js | 8 ++- src/redux/createStore.js | 15 ++--- 4 files changed, 83 insertions(+), 72 deletions(-) diff --git a/src/components/admin-lte/wallet/create.js b/src/components/admin-lte/wallet/create.js index 1c1eb06..6f1360d 100644 --- a/src/components/admin-lte/wallet/create.js +++ b/src/components/admin-lte/wallet/create.js @@ -4,10 +4,9 @@ import { Row, Col, Box, Button } from 'adminlte-2-react' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' // import BchWallet from 'minimal-slp-wallet' -const BchWallet = - typeof window !== 'undefined' - ? window.SlpWallet - : null +const siteConfig = require('../../site-config') + +const BchWallet = typeof window !== 'undefined' ? window.SlpWallet : null let _this class NewWallet extends React.Component { @@ -29,31 +28,31 @@ class NewWallet extends React.Component { - +

New Wallet

- + - - + + {_this.state.txId} @@ -71,46 +71,46 @@ class Tokens extends React.Component { )} {_this.state.inFetch ? ( -
- Loading... -
+
+ Loading... +
) : ( - - {_this.state.errMsg && ( - - - - {_this.state.errMsg} - - - - )} + + {_this.state.errMsg && ( + + + + {_this.state.errMsg} + + + + )} - {_this.state.tokens.length > 0 && ( - <> - - {_this.state.tokens.map((val, i) => { - if (val.qty > 0) { - return ( - - - - ) - } else { - return - } - })} - - - )} - + {_this.state.tokens.length > 0 && ( + <> + + {_this.state.tokens.map((val, i) => { + if (val.qty > 0) { + return ( + + + + ) + } else { + return + } + })} + + + )} + )} FullStack.cash
diff --git a/src/components/admin-lte/tokens/send-tokens.js b/src/components/admin-lte/tokens/send-tokens.js index 04adcd2..4474ede 100644 --- a/src/components/admin-lte/tokens/send-tokens.js +++ b/src/components/admin-lte/tokens/send-tokens.js @@ -35,72 +35,72 @@ class SendTokens extends React.Component { <> - + - -

+ +

Send

- + +