style(warning): Added open alpha warning notice

This commit is contained in:
Daniel Gonzalez
2020-06-20 20:57:27 -04:00
parent f33a6c3f09
commit 8cf07a2a65
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 Icons from "./icons" import Icons from "./icons"
import Wallet from "./wallet" 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 ScannerModal from "../qr-scanner/modal"
import Layout from "../layout" import Layout from "../layout"
import "./admin-lte.css" import "./admin-lte.css"
import BchWallet from "minimal-slp-wallet" import BchWallet from "minimal-slp-wallet"
import VersionStatus from "../version-status"
import { BrowserRouter as Router } from "react-router-dom" import { BrowserRouter as Router } from "react-router-dom"
const { Item } = Sidebar const { Item } = Sidebar
@@ -19,6 +19,7 @@ const { Item } = Sidebar
const MENU_HIDE_WIDTH = 770 const MENU_HIDE_WIDTH = 770
let _this let _this
class AdminLTEPage extends React.Component { class AdminLTEPage extends React.Component {
constructor(props) { constructor(props) {
super(props) super(props)
@@ -65,6 +66,9 @@ class AdminLTEPage extends React.Component {
{_this.sidebar} {_this.sidebar}
</Sidebar.Core> </Sidebar.Core>
<Navbar.Core>
<VersionStatus></VersionStatus>
</Navbar.Core>
<Layout path="/"> <Layout path="/">
<div className="components-container"> <div className="components-container">
{_this.state.section === "Wallet" && ( {_this.state.section === "Wallet" && (
@@ -107,13 +111,14 @@ class AdminLTEPage extends React.Component {
async componentDidMount() { async componentDidMount() {
_this.customMenuItems() _this.customMenuItems()
_this.dropDownBalance()
_this.addOnClickEventToScanner() _this.addOnClickEventToScanner()
_this.activeItemById("Wallet") _this.activeItemById("Wallet")
await _this.updateState() await _this.updateState()
setTimeout(() => { setTimeout(() => {
_this.dropDownBalance()
_this.getBalance() _this.getBalance()
}, 250) }, 250)
} }
@@ -227,7 +232,6 @@ class AdminLTEPage extends React.Component {
showScannerModal: !_this.state.showScannerModal, showScannerModal: !_this.state.showScannerModal,
}) })
} }
} }
// Props prvided by redux // Props prvided by redux
AdminLTEPage.propTypes = { AdminLTEPage.propTypes = {
+25
View File
@@ -698,3 +698,28 @@ pre tt:after {
box-shadow: 0 5px #666; box-shadow: 0 5px #666;
transform: translateY(4px); 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