2015-10-08 12:27:09 -04:00
|
|
|
// 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';
|
2016-01-26 22:19:51 -03:00
|
|
|
|
2015-08-31 12:44:30 -04:00
|
|
|
export default class LoadingScreen extends React.Component {
|
|
|
|
|
constructor(props) {
|
|
|
|
|
super(props);
|
|
|
|
|
this.state = {};
|
|
|
|
|
}
|
|
|
|
|
render() {
|
2015-07-11 08:32:02 -07:00
|
|
|
return (
|
2015-08-31 12:44:30 -04:00
|
|
|
<div
|
|
|
|
|
className='loading-screen'
|
|
|
|
|
style={{position: this.props.position}}
|
|
|
|
|
>
|
|
|
|
|
<div className='loading__content'>
|
2016-01-26 22:19:51 -03:00
|
|
|
<h3>
|
|
|
|
|
<FormattedMessage
|
|
|
|
|
id='loading_screen.loading'
|
|
|
|
|
defaultMessage='Loading'
|
|
|
|
|
/>
|
|
|
|
|
</h3>
|
2015-08-31 12:44:30 -04:00
|
|
|
<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>
|
|
|
|
|
);
|
|
|
|
|
}
|
2015-08-31 12:44:30 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
LoadingScreen.defaultProps = {
|
|
|
|
|
position: 'relative'
|
|
|
|
|
};
|
|
|
|
|
LoadingScreen.propTypes = {
|
|
|
|
|
position: React.PropTypes.oneOf(['absolute', 'fixed', 'relative', 'static', 'inherit'])
|
|
|
|
|
};
|