This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
outline/app/components/LoadingIndicator/LoadingIndicator.js

21 lines
375 B
JavaScript

// @flow
import * as 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);