Files
Jesús Espino 593a8bbd00 MM-13272: New LoadingWrapper component (#2149)
* MM-13272: Adding Loading Component

* MM-13272: Improving loaders consistency

* Updated i18n/en.json

* Applying proposed changes

* Lot of naming and path changes

* Changing classes names
2018-12-19 05:28:56 +01:00

32 lines
723 B
React

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import PropTypes from 'prop-types';
import React from 'react';
import loadingGif from 'images/load.gif';
export default class LoadingBars extends React.PureComponent {
static propTypes = {
text: PropTypes.string,
}
static defaultProps = {
text: null,
}
render() {
const {text} = this.props;
return (
<span className={'LoadingBars' + (text ? ' with-text' : '')}>
<img
className='spinner'
src={loadingGif}
/>
{text}
</span>
);
}
}