Files
mattermost/webapp/components/loading_screen.jsx

41 lines
1.2 KiB
React
Raw Normal View History

// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
2015-07-11 08:32:02 -07:00
// See License.txt for license information.
2016-03-14 08:50:46 -04:00
import {FormattedMessage} from 'react-intl';
import React from 'react';
export default class LoadingScreen extends React.Component {
constructor(props) {
super(props);
this.state = {};
}
render() {
2015-07-11 08:32:02 -07:00
return (
<div
className='loading-screen'
style={{position: this.props.position}}
>
<div className='loading__content'>
<h3>
<FormattedMessage
id='loading_screen.loading'
defaultMessage='Loading'
/>
</h3>
<div className='round round-1'></div>
<div className='round round-2'></div>
<div className='round round-3'></div>
2015-07-11 08:32:02 -07:00
</div>
</div>
);
}
}
LoadingScreen.defaultProps = {
position: 'relative'
};
LoadingScreen.propTypes = {
position: React.PropTypes.oneOf(['absolute', 'fixed', 'relative', 'static', 'inherit'])
};