frontend > app
This commit is contained in:
19
app/components/LoadingIndicator/LoadingIndicator.js
Normal file
19
app/components/LoadingIndicator/LoadingIndicator.js
Normal file
@ -0,0 +1,19 @@
|
||||
// @flow
|
||||
import React from 'react';
|
||||
import { inject, observer } from 'mobx-react';
|
||||
|
||||
@observer class LoadingIndicator extends React.Component {
|
||||
componentDidMount() {
|
||||
this.props.ui.enableProgressBar();
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
this.props.ui.disableProgressBar();
|
||||
}
|
||||
|
||||
render() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
export default inject('ui')(LoadingIndicator);
|
Reference in New Issue
Block a user