Merge pull request #8 from Permissionless-Software-Foundation/dh-open-alpha

style(warning): Added open alpha warning notice
This commit is contained in:
Chris Troutner
2020-06-20 18:03:00 -07:00
committed by GitHub
4 changed files with 424 additions and 322 deletions
+366 -318
View File
File diff suppressed because it is too large Load Diff
+8 -4
View File
@@ -5,13 +5,13 @@ import Configure from "./configure"
import Tokens from "./icons"
import Wallet from "./wallet"
import AdminLTE, { Sidebar } from "adminlte-2-react"
import AdminLTE, { Sidebar, Navbar } from "adminlte-2-react"
import ScannerModal from "../qr-scanner/modal"
import Layout from "../layout"
import "./admin-lte.css"
import BchWallet from "minimal-slp-wallet"
import VersionStatus from "../version-status"
import { BrowserRouter as Router } from "react-router-dom"
const { Item } = Sidebar
@@ -19,6 +19,7 @@ const { Item } = Sidebar
const MENU_HIDE_WIDTH = 770
let _this
class AdminLTEPage extends React.Component {
constructor(props) {
super(props)
@@ -59,6 +60,9 @@ class AdminLTEPage extends React.Component {
{_this.sidebar}
</Sidebar.Core>
<Navbar.Core>
<VersionStatus></VersionStatus>
</Navbar.Core>
<Layout path="/">
<div className="components-container">
{_this.state.section === "Wallet" && (
@@ -101,13 +105,14 @@ class AdminLTEPage extends React.Component {
async componentDidMount() {
_this.customMenuItems()
_this.dropDownBalance()
_this.addOnClickEventToScanner()
_this.activeItemById("Wallet")
await _this.updateState()
setTimeout(() => {
_this.dropDownBalance()
_this.getBalance()
}, 250)
}
@@ -221,7 +226,6 @@ class AdminLTEPage extends React.Component {
showScannerModal: !_this.state.showScannerModal,
})
}
}
// Props prvided by redux
AdminLTEPage.propTypes = {
+25
View File
@@ -698,3 +698,28 @@ pre tt:after {
box-shadow: 0 5px #666;
transform: translateY(4px);
}
.version-status{
position: absolute;
top: 0;
width: 60%;
left: calc(50% - 30%) ;
display: flex;
align-items: center;
height: 100%;
}
.version-status div{
width: 100%;
color:white;
background-color: #FF4500;
height: 70%;
display: flex;
align-items: center;
justify-content: center;
padding-right: 1em;
padding-left: 1em;
}
.version-status div p{
font-size: 12px;
font-weight: 800;
margin-top: 8px;
}
+25
View File
@@ -0,0 +1,25 @@
import React from "react"
class VersionStatus extends React.Component {
constructor(props) {
super(props)
this.state = {}
}
render() {
return (
<>
<div className="version-status">
<div>
<p><b>Warning: Open Alpha - things will break</b></p>
</div>
</div>
</>
)
}
}
export default VersionStatus