centered publish-disabled message

This commit is contained in:
bill bittner 2018-06-23 19:52:19 -07:00
parent 5db0d3f6b8
commit 35f16031d5
4 changed files with 23 additions and 5 deletions

View file

@ -40,11 +40,15 @@ function (_React$Component) {
key: "render", key: "render",
value: function render() { value: function render() {
var message = this.props.message; var message = this.props.message;
return _react.default.createElement("div", null, _react.default.createElement("p", { return _react.default.createElement("div", {
className: 'publish-disabled-message'
}, _react.default.createElement("div", {
className: 'message'
}, _react.default.createElement("p", {
className: 'text--secondary' className: 'text--secondary'
}, "Publishing is currently disabled."), _react.default.createElement("p", { }, "Publishing is currently disabled."), _react.default.createElement("p", {
className: 'text--secondary' className: 'text--secondary'
}, message)); }, message)));
} }
}]); }]);

View file

@ -40,6 +40,7 @@
@import 'containers/_dropzone'; @import 'containers/_dropzone';
@import 'containers/_publish-url-input'; @import 'containers/_publish-url-input';
@import 'containers/_publish-status'; @import 'containers/_publish-status';
@import 'containers/_publish-disabled-message';
@import '_media-queries'; @import '_media-queries';

View file

@ -0,0 +1,11 @@
.publish-disabled-message {
// fill the parent flex container
flex: 1 0 auto;
// be a flex container for children
display: flex;
flex-direction: column;
justify-content: center;
.message {
text-align: center;
}
}

View file

@ -4,9 +4,11 @@ class PublishDisabledMessage extends React.Component {
render () { render () {
const message = this.props.message; const message = this.props.message;
return ( return (
<div> <div className={'publish-disabled-message'}>
<p className={'text--secondary'}>Publishing is currently disabled.</p> <div className={'message'}>
<p className={'text--secondary'}>{message}</p> <p className={'text--secondary'}>Publishing is currently disabled.</p>
<p className={'text--secondary'}>{message}</p>
</div>
</div> </div>
); );
} }