mirror of
https://github.com/fullstack-cash/fullstack-gatsby-theme-bch-wallet.git
synced 2026-09-21 16:52:06 -07:00
style(warning): Added open alpha warning notice
This commit is contained in:
Generated
+366
-318
File diff suppressed because it is too large
Load Diff
@@ -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 = {
|
||||||
|
|||||||
@@ -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;
|
||||||
|
}
|
||||||
@@ -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
|
||||||
Reference in New Issue
Block a user