mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
fix bugs.
This commit is contained in:
18
client/src/components/NProgress/AppProgress.js
Normal file
18
client/src/components/NProgress/AppProgress.js
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
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);
|
||||
Reference in New Issue
Block a user