diff --git a/client/build/components/HorizontalSplit/index.js b/client/build/components/HorizontalSplit/index.js index 8e6a8b9f..3e6198fa 100644 --- a/client/build/components/HorizontalSplit/index.js +++ b/client/build/components/HorizontalSplit/index.js @@ -37,11 +37,6 @@ function (_React$Component) { } _createClass(HorizontalSplit, [{ - key: "shouldComponentUpdate", - value: function shouldComponentUpdate() { - return false; - } - }, { key: "render", value: function render() { return _react.default.createElement("div", { diff --git a/client/build/components/SpaceAround/index.js b/client/build/components/SpaceAround/index.js index 761da053..482db9ad 100644 --- a/client/build/components/SpaceAround/index.js +++ b/client/build/components/SpaceAround/index.js @@ -37,11 +37,6 @@ function (_React$Component) { } _createClass(SpaceAround, [{ - key: "shouldComponentUpdate", - value: function shouldComponentUpdate() { - return false; - } - }, { key: "render", value: function render() { return _react.default.createElement("div", { diff --git a/client/build/components/SpaceBetween/index.js b/client/build/components/SpaceBetween/index.js index 05567461..28713c63 100644 --- a/client/build/components/SpaceBetween/index.js +++ b/client/build/components/SpaceBetween/index.js @@ -37,11 +37,6 @@ function (_React$Component) { } _createClass(SpaceBetween, [{ - key: "shouldComponentUpdate", - value: function shouldComponentUpdate() { - return false; - } - }, { key: "render", value: function render() { return _react.default.createElement("div", { diff --git a/client/build/components/VerticalSplit/index.js b/client/build/components/VerticalSplit/index.js index f8899210..8273f8c7 100644 --- a/client/build/components/VerticalSplit/index.js +++ b/client/build/components/VerticalSplit/index.js @@ -37,11 +37,6 @@ function (_React$Component) { } _createClass(VerticalSplit, [{ - key: "shouldComponentUpdate", - value: function shouldComponentUpdate() { - return false; - } - }, { key: "render", value: function render() { return _react.default.createElement("div", { diff --git a/client/build/containers/PublishStatus/view.js b/client/build/containers/PublishStatus/view.js index 6f71cc72..9aeb8543 100644 --- a/client/build/containers/PublishStatus/view.js +++ b/client/build/containers/PublishStatus/view.js @@ -11,8 +11,6 @@ var _ProgressBar = _interopRequireDefault(require("@components/ProgressBar")); var publishStates = _interopRequireWildcard(require("../../constants/publish_claim_states")); -var _SpaceAround = _interopRequireDefault(require("@components/SpaceAround")); - var _ButtonSecondary = _interopRequireDefault(require("@components/ButtonSecondary")); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } @@ -53,7 +51,9 @@ function (_React$Component) { status = _this$props.status, message = _this$props.message, clearFile = _this$props.clearFile; - return _react.default.createElement(_SpaceAround.default, null, status === publishStates.LOAD_START && _react.default.createElement("div", null, _react.default.createElement("p", null, "File is loading to server"), _react.default.createElement("p", { + return _react.default.createElement("div", { + className: 'publish-status' + }, status === publishStates.LOAD_START && _react.default.createElement("div", null, _react.default.createElement("p", null, "File is loading to server"), _react.default.createElement("p", { className: 'text--secondary' }, "0%")), status === publishStates.LOADING && _react.default.createElement("div", null, _react.default.createElement("p", null, "File is loading to server"), _react.default.createElement("p", { className: 'text--secondary' diff --git a/client/scss/all.scss b/client/scss/all.scss index db821197..ea10cd7b 100644 --- a/client/scss/all.scss +++ b/client/scss/all.scss @@ -37,6 +37,7 @@ @import 'containers/_dropzone'; @import 'containers/_publish-url-input'; +@import 'containers/_publish-status'; @import '_media-queries'; diff --git a/client/scss/containers/_publish-status.scss b/client/scss/containers/_publish-status.scss new file mode 100644 index 00000000..2b64b3fc --- /dev/null +++ b/client/scss/containers/_publish-status.scss @@ -0,0 +1,8 @@ +.publish-status { + // fill the parent flex container + flex: 1 0 auto; + // be a flex container for children + display: flex; + flex-direction: column; + justify-content: center; +} diff --git a/client/src/components/HorizontalSplit/index.jsx b/client/src/components/HorizontalSplit/index.jsx index cac2afae..c5151fa3 100644 --- a/client/src/components/HorizontalSplit/index.jsx +++ b/client/src/components/HorizontalSplit/index.jsx @@ -1,9 +1,6 @@ import React from 'react'; class HorizontalSplit extends React.Component { - shouldComponentUpdate () { - return false; - } render () { return (
File is loading to server
@@ -45,7 +44,7 @@ class PublishStatus extends React.Component { />