You've already forked mattermost-webapp
mirror of
https://github.com/zerotier/mattermost-webapp.git
synced 2026-05-22 16:23:25 -07:00
593a8bbd00
* 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
32 lines
723 B
React
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>
|
|
);
|
|
}
|
|
}
|