X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=src%2Futils%2FSpinnerContainer.jsx;h=648a2e4298a91bb108df686a9d5894c3169ca1eb;hb=HEAD;hp=448999cffcee6593f4c341ceb75958921e705a9b;hpb=c89060158fab7394c3bddc5eacb0411dbb13785c;p=aai%2Fsparky-fe.git diff --git a/src/utils/SpinnerContainer.jsx b/src/utils/SpinnerContainer.jsx index 448999c..648a2e4 100644 --- a/src/utils/SpinnerContainer.jsx +++ b/src/utils/SpinnerContainer.jsx @@ -1,13 +1,35 @@ +/* + * ============LICENSE_START======================================================= + * org.onap.aai + * ================================================================================ + * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved. + * Copyright © 2017-2018 Amdocs + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ import React, { Component } from 'react'; import { ClipLoader } from 'react-spinners'; -import {COLOR_BLUE} from 'utils/GlobalConstants.js'; +import {COLOR_BLUE} from './GlobalExtConstants.js'; +import { PropTypes } from 'prop-types'; class SpinnerContainer extends Component { render() { // if loading, show content as busy (ex: grey out) const spinnerContentClass = this.props.loading ? 'spinner-content' : ''; + const containerClass = this.props.fullscreen ? 'col-lg-12 spinner-container' : 'spinner-container'; return ( -
+
@@ -21,10 +43,9 @@ class SpinnerContainer extends Component { export default SpinnerContainer; SpinnerContainer.propTypes = { - loading: React.PropTypes.bool + loading: PropTypes.bool }; SpinnerContainer.defaultProps = { loading: false }; -