From 31b8a5dfc0b38f78c63db7926cb82b4b71bedef7 Mon Sep 17 00:00:00 2001 From: Daniel Gonzalez Date: Mon, 10 Aug 2020 21:50:18 -0400 Subject: [PATCH] refactor(configure): Converted configure cards into components --- src/components/admin-lte/configure/index.js | 178 ++------------------ src/components/admin-lte/configure/info.js | 89 ++++++++++ src/components/admin-lte/configure/jwt.js | 142 ++++++++++++++++ 3 files changed, 245 insertions(+), 164 deletions(-) create mode 100644 src/components/admin-lte/configure/info.js create mode 100644 src/components/admin-lte/configure/jwt.js diff --git a/src/components/admin-lte/configure/index.js b/src/components/admin-lte/configure/index.js index d13a64b..b72236f 100644 --- a/src/components/admin-lte/configure/index.js +++ b/src/components/admin-lte/configure/index.js @@ -1,13 +1,12 @@ import React from 'react' import PropTypes from 'prop-types' -import { Content, Row, Col, Box, Inputs, Button } from 'adminlte-2-react' -import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' +import { Content } from 'adminlte-2-react' import MenuComponents from './menu-components' import Servers from './servers' -import { setWalletInfo } from '../../localWallet' -import TabsMenu from './TabsMenu' +import JsonWebTokens from './jwt' +import ConfigureInfo from './info' -const { Text } = Inputs +import TabsMenu from './TabsMenu' const BchWallet = typeof window !== 'undefined' ? window.SlpWallet : null @@ -19,9 +18,7 @@ class Configure extends React.Component { _this = this this.state = { - menuItem: 'Configure', - JWT: '', - errMsg: '' + menuItem: 'Configure' } _this.BchWallet = BchWallet @@ -37,93 +34,14 @@ class Configure extends React.Component { {_this.state.menuItem === 'Configure' && ( <> - - - - - -

- - Configure -

- -

- - Be Careful -

-

- Backup your wallet first. Updating the configuration - will restart the app. -

-

- This is just a placeholder. This View will allow the - user to pick alternate back-end servers. The default - will be{' '} - - FullStack.cash - -

-