From e88e022b6a95ac6d1867ab3467ef9ebdf4ab4e61 Mon Sep 17 00:00:00 2001 From: Daniel Gonzalez Date: Tue, 23 Jun 2020 18:40:58 -0400 Subject: [PATCH] feat(JWT): Added JWT token to Configure View --- src/components/admin-lte/configure/index.js | 132 ++++++++++++++++++-- src/components/admin-lte/index.js | 29 +++-- src/components/admin-lte/wallet/create.js | 23 +++- src/components/admin-lte/wallet/import.js | 24 +++- src/components/admin-lte/wallet/index.js | 11 +- src/pages/index.js | 14 ++- src/redux/createStore.js | 48 ++++++- 7 files changed, 245 insertions(+), 36 deletions(-) diff --git a/src/components/admin-lte/configure/index.js b/src/components/admin-lte/configure/index.js index 2f1ffa8..08f3b35 100644 --- a/src/components/admin-lte/configure/index.js +++ b/src/components/admin-lte/configure/index.js @@ -1,17 +1,31 @@ import React from "react" - -import { Content, Row, Col, Box } from "adminlte-2-react" +import PropTypes from "prop-types" +import { Content, Row, Col, Box, Inputs, Button } from "adminlte-2-react" import { FontAwesomeIcon } from "@fortawesome/react-fontawesome" +import BchWallet from "minimal-slp-wallet" -class Audit extends React.Component { - state = {} +const { Text } = Inputs + +let _this +class Configure extends React.Component { + constructor(props) { + super(props) + + _this = this + + this.state = { + JWT: "", + errMsg: "", + } + + _this.BchWallet = BchWallet + } render() { return ( - - + @@ -38,19 +52,117 @@ class Audit extends React.Component {

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

- + + + + +

+ + JWT +

+ + +