mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
fix: refresh accounts and account transactions.
This commit is contained in:
@@ -10,6 +10,7 @@ import { CashFlowAccountsProvider } from './CashFlowAccountsProvider';
|
||||
import CashflowAccountsGrid from './CashflowAccountsGrid';
|
||||
import CashFlowAccountsActionsBar from './CashFlowAccountsActionsBar';
|
||||
import { CashflowAccountsPlaidLink } from './CashflowAccountsPlaidLink';
|
||||
import { CashflowAccountsLoadingBar } from './CashFlowAccountsLoadingBar';
|
||||
|
||||
import withCashflowAccounts from '@/containers/CashFlow/AccountTransactions/withCashflowAccounts';
|
||||
import withCashflowAccountsTableActions from '@/containers/CashFlow/AccountTransactions/withCashflowAccountsTableActions';
|
||||
@@ -35,6 +36,7 @@ function CashFlowAccountsList({
|
||||
return (
|
||||
<CashFlowAccountsProvider tableState={cashflowAccountsTableState}>
|
||||
<CashFlowAccountsActionsBar />
|
||||
<CashflowAccountsLoadingBar />
|
||||
|
||||
<DashboardPageContent>
|
||||
<CashflowAccountsGrid />
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
// @ts-nocheck
|
||||
import FinancialLoadingBar from '@/containers/FinancialStatements/FinancialLoadingBar';
|
||||
import { useCashFlowAccountsContext } from './CashFlowAccountsProvider';
|
||||
|
||||
export function CashflowAccountsLoadingBar() {
|
||||
const { isCashFlowAccountsFetching } = useCashFlowAccountsContext();
|
||||
|
||||
if (isCashFlowAccountsFetching) {
|
||||
return <FinancialLoadingBar />;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
Reference in New Issue
Block a user