mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
18 lines
355 B
JavaScript
18 lines
355 B
JavaScript
|
|
import React from 'react';
|
|
import {connect} from 'react-redux';
|
|
import Progress from './Progress';
|
|
|
|
function AppProgress({
|
|
isAnimating,
|
|
}) {
|
|
return (
|
|
<Progress isAnimating={isAnimating} />
|
|
);
|
|
};
|
|
|
|
const mapStateToProps = (state) => ({
|
|
isAnimating: state.dashboard.requestsLoading > 0,
|
|
});
|
|
|
|
export default connect(mapStateToProps)(AppProgress); |