@bpanel/bpanel-header
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -1,2 +0,2 @@ | ||
'use strict'; | ||
"use strict"; | ||
@@ -7,11 +7,11 @@ Object.defineProperty(exports, "__esModule", { | ||
var _react = require('react'); | ||
var _react = require("react"); | ||
var _react2 = _interopRequireDefault(_react); | ||
var _propTypes = require('prop-types'); | ||
var _propTypes = require("prop-types"); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _bpanelUi = require('@bpanel/bpanel-ui'); | ||
var _bpanelUi = require("@bpanel/bpanel-ui"); | ||
@@ -29,36 +29,35 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
return _react2.default.createElement( | ||
'div', | ||
{ className: 'container' }, | ||
"div", | ||
{ className: "container" }, | ||
_react2.default.createElement( | ||
'div', | ||
"div", | ||
{ | ||
className: theme.headerbar.networkStatus + ' ml-md-auto text-right col' | ||
className: theme.headerbar.networkStatus + " ml-md-auto text-right col" | ||
}, | ||
_react2.default.createElement( | ||
'div', | ||
{ className: 'network text-uppercase' }, | ||
"div", | ||
{ className: "network text-uppercase" }, | ||
_react2.default.createElement( | ||
_bpanelUi.Text, | ||
{ className: theme.headerbar.text }, | ||
'Status: ', | ||
"Status: ", | ||
network, | ||
' ' | ||
), | ||
_react2.default.createElement('i', { | ||
className: theme.headerbar.icon + ' fa fa-' + statusIcon, | ||
areahidden: 'true' | ||
}) | ||
_react2.default.createElement("i", { | ||
className: theme.headerbar.icon + " fa fa-" + statusIcon, | ||
areahidden: "true" | ||
}) | ||
) | ||
), | ||
_react2.default.createElement( | ||
'div', | ||
{ className: 'node' }, | ||
"div", | ||
{ className: "node" }, | ||
_react2.default.createElement( | ||
_bpanelUi.Text, | ||
{ className: theme.headerbar.nodeText + ' ' + theme.headerbar.text }, | ||
'Node:', | ||
' ' | ||
{ className: theme.headerbar.nodeText + " " + theme.headerbar.text }, | ||
"Node:", | ||
" " | ||
), | ||
_react2.default.createElement( | ||
_bpanelUi.Text, | ||
{ className: '' + theme.headerbar.text }, | ||
{ className: "" + theme.headerbar.text }, | ||
bcoinUri | ||
@@ -65,0 +64,0 @@ ) |
@@ -96,3 +96,3 @@ 'use strict'; | ||
var headerProps = (0, _assign2.default)({ statusIcon: statusIcon }, nextProps); | ||
this.header = (0, _Header2.default)(nextProps); | ||
this.header = (0, _Header2.default)(headerProps); | ||
} | ||
@@ -99,0 +99,0 @@ }, { |
@@ -1,4 +0,4 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { Text, utils, widgetCreator } from '@bpanel/bpanel-ui'; | ||
import React from "react"; | ||
import PropTypes from "prop-types"; | ||
import { Text, utils, widgetCreator } from "@bpanel/bpanel-ui"; | ||
@@ -13,11 +13,13 @@ const { connectTheme } = utils; | ||
<div className="network text-uppercase"> | ||
<Text className={theme.headerbar.text}>Status: {network} </Text> | ||
<i | ||
className={`${theme.headerbar.icon} fa fa-${statusIcon}`} | ||
areahidden="true" | ||
/> | ||
<Text className={theme.headerbar.text}> | ||
Status: {network} | ||
<i | ||
className={`${theme.headerbar.icon} fa fa-${statusIcon}`} | ||
areahidden="true" | ||
/> | ||
</Text> | ||
</div> | ||
<div className="node"> | ||
<Text className={`${theme.headerbar.nodeText} ${theme.headerbar.text}`}> | ||
Node:{' '} | ||
Node:{" "} | ||
</Text> | ||
@@ -24,0 +26,0 @@ <Text className={`${theme.headerbar.text}`}>{bcoinUri}</Text> |
@@ -54,3 +54,3 @@ // Entry point for your plugin | ||
const headerProps = Object.assign({ statusIcon }, nextProps); | ||
this.header = HeaderPlugin(nextProps); | ||
this.header = HeaderPlugin(headerProps); | ||
} | ||
@@ -57,0 +57,0 @@ |
{ | ||
"name": "@bpanel/bpanel-header", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Default header for bpanel", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16618
10
243