infect-frontend
Version:
infect fronend
22 lines (18 loc) • 533 B
JSX
import React from 'react';
import { observer } from 'mobx-react';
import { computed } from 'mobx';
export default class MatrixLoadingOverlay extends React.Component {
get loading() {
return this.props.stores.some((store) => {
return store.status.identifier === 'loading';
});
}
render() {
return(
<div className={ 'resistanceMatrix__overlay ' + (this.loading ? 'resistanceMatrix__overlay--active' : '') }>
<img src="img/logo_spinner.svg" />
</div>
);
}
}