mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
WIP Version 0.0.1
This commit is contained in:
@@ -1,18 +1,16 @@
|
||||
|
||||
import React from 'react';
|
||||
import {connect} from 'react-redux';
|
||||
import Progress from './Progress';
|
||||
import {queryCache, useIsFetching} from 'react-query';
|
||||
|
||||
function AppProgress({
|
||||
isAnimating,
|
||||
|
||||
}) {
|
||||
const isFetching = useIsFetching();
|
||||
|
||||
return (
|
||||
<Progress isAnimating={isAnimating} />
|
||||
<Progress isAnimating={isFetching} />
|
||||
);
|
||||
};
|
||||
|
||||
const mapStateToProps = (state) => ({
|
||||
isAnimating: state.dashboard.requestsLoading > 0,
|
||||
});
|
||||
|
||||
export default connect(mapStateToProps)(AppProgress);
|
||||
|
||||
export default AppProgress;
|
||||
Reference in New Issue
Block a user