diff options
Diffstat (limited to 'src/utils/SpinnerContainer.jsx')
-rw-r--r-- | src/utils/SpinnerContainer.jsx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/utils/SpinnerContainer.jsx b/src/utils/SpinnerContainer.jsx index 17e6e58..648a2e4 100644 --- a/src/utils/SpinnerContainer.jsx +++ b/src/utils/SpinnerContainer.jsx @@ -19,16 +19,17 @@ * ============LICENSE_END========================================================= */ import React, { Component } from 'react'; -import { PropTypes } from 'prop-types'; 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 ? 'spin-content' : ''; + const spinnerContentClass = this.props.loading ? 'spinner-content' : ''; + const containerClass = this.props.fullscreen ? 'col-lg-12 spinner-container' : 'spinner-container'; return ( - <div className='spin-container'> + <div className={containerClass}> <div className='spinner'> <ClipLoader color={COLOR_BLUE} loading={this.props.loading} /> </div> |