diff --git a/src/components/admin-lte/configure/index.js b/src/components/admin-lte/configure/index.js index d1b5878..94fd6c9 100644 --- a/src/components/admin-lte/configure/index.js +++ b/src/components/admin-lte/configure/index.js @@ -3,7 +3,7 @@ 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' - +import Servers from './servers' const { Text } = Inputs let _this @@ -104,6 +104,11 @@ class Configure extends React.Component { + ) } diff --git a/src/components/admin-lte/configure/servers.js b/src/components/admin-lte/configure/servers.js new file mode 100644 index 0000000..963b591 --- /dev/null +++ b/src/components/admin-lte/configure/servers.js @@ -0,0 +1,251 @@ +import React from "react" +import PropTypes from "prop-types" +import { Row, Col, Box, Inputs, Button } from "adminlte-2-react" +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome" + +const { Text, Select } = Inputs + +let _this +class Servers extends React.Component { + constructor(props) { + super(props) + + _this = this + + this.state = { + selectOptions: [], + errMsg: "", + selectedServer: "", + showAddField: false, + newServer: "", + } + + // Default field options + this.defaultOptions = [ + { + value: "https://api.fullstaack.cash/v3/", + text: "https://api.fullstaack.cash/v3/", + }, + { + value: "https://free-api.fullstack.cash/v3/", + text: "https://free-api.fullstack.cash/v3/", + }, + ] + } + + render() { + return ( + + + + + +

+ + Back End Server +

+ + + + {_this.state.showAddField ? ( + + } + /> + ) : ( +