Merge pull request #9 from Permissionless-Software-Foundation/ct-unstable

Reconfigured menu
This commit is contained in:
Chris Troutner
2020-06-20 18:01:54 -07:00
committed by GitHub
2 changed files with 24 additions and 12 deletions
@@ -36,6 +36,11 @@ class Audit extends React.Component {
Backup your wallet first. Updating the configuration will
restart the app.
</p>
<p>
This is just a placeholder. This View will allow the user
to pick alternate back-end servers. The default will
be <a href="https://fullstack.cash" target="_blank" rel="noreferrer">FullStack.cash</a>
</p>
</Box>
</Col>
</Row>
+19 -12
View File
@@ -2,7 +2,7 @@ import React from "react"
import PropTypes from "prop-types"
import Audit from "./audit"
import Configure from "./configure"
import Icons from "./icons"
import Tokens from "./icons"
import Wallet from "./wallet"
import AdminLTE, { Sidebar } from "adminlte-2-react"
@@ -35,17 +35,11 @@ class AdminLTEPage extends React.Component {
sidebar = [
<Item icon="fa-wallet" key="Wallet" text="Wallet" activeOn="/" />,
<Item icon="fas-icons" key="Icons" text="Icons" />,
<Item icon="fas-cog" key="Configure" text="Configure" />,
<Item icon="fa-tablet-alt" key="Audit" text="Audit" />,
<Item icon="fa-link" key="Link" text="Link">
<Item key="Send" text="Send BCH by Email" />
<Item key="Faucet" text="Faucet (Free BCH)" />
<Item key="Exchange" text="Exchange" />
<Item key="Games" text="Games" />
<Item key="trade" text="Trade Locally" />
</Item>,
<Item icon="fas-coins" key="Tokens" text="Tokens" />,
<Item icon="fa-qrcode" key="qrReader" text="Qr Scanner" />,
<Item icon="fas-cog" key="Configure" text="Configure" />,
]
render() {
@@ -74,7 +68,7 @@ class AdminLTEPage extends React.Component {
updateBalance={_this.props.updateBalance}
/>
)}
{_this.state.section === "Icons" && <Icons />}
{_this.state.section === "Tokens" && <Tokens />}
{_this.state.section === "Configure" && <Configure />}
{_this.state.section === "Audit" && <Audit />}
</div>
@@ -238,3 +232,16 @@ AdminLTEPage.propTypes = {
}
export default AdminLTEPage
/*
CT 6/20/2020 storing code here for future reference
<Item icon="fa-tablet-alt" key="Audit" text="Audit" />,
<Item icon="fa-link" key="Link" text="Link">
<Item key="Send" text="Send BCH by Email" />
<Item key="Faucet" text="Faucet (Free BCH)" />
<Item key="Exchange" text="Exchange" />
<Item key="Games" text="Games" />
<Item key="trade" text="Trade Locally" />
</Item>,
*/