mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 22:00:31 +00:00
feat: toggle banking matching aside
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
// @ts-nocheck
|
||||
import React, { Suspense } from 'react';
|
||||
import * as R from 'ramda';
|
||||
import { Spinner } from '@blueprintjs/core';
|
||||
|
||||
import '@/style/pages/CashFlow/AccountTransactions/List.scss';
|
||||
@@ -16,14 +17,18 @@ import { AccountTransactionsProgressBar } from './components';
|
||||
import { AccountTransactionsFilterTabs } from './AccountTransactionsFilterTabs';
|
||||
import { AppShell } from '@/components/AppShell/AppShell';
|
||||
import { CategorizeTransactionAside } from '../CategorizeTransactionAside/CategorizeTransactionAside';
|
||||
import { withBanking } from '../withBanking';
|
||||
|
||||
/**
|
||||
* Account transactions list.
|
||||
*/
|
||||
function AccountTransactionsList() {
|
||||
function AccountTransactionsListRoot({
|
||||
// #withBanking
|
||||
openMatchingTransactionAside,
|
||||
}) {
|
||||
return (
|
||||
<AccountTransactionsProvider>
|
||||
<AppShell>
|
||||
<AppShell hideAside={!openMatchingTransactionAside}>
|
||||
<AppShell.Main>
|
||||
<AccountTransactionsActionsBar />
|
||||
<AccountTransactionsDetailsBar />
|
||||
@@ -46,7 +51,14 @@ function AccountTransactionsList() {
|
||||
);
|
||||
}
|
||||
|
||||
export default AccountTransactionsList;
|
||||
export default R.compose(
|
||||
withBanking(
|
||||
({ selectedUncategorizedTransactionId, openMatchingTransactionAside }) => ({
|
||||
selectedUncategorizedTransactionId,
|
||||
openMatchingTransactionAside,
|
||||
}),
|
||||
),
|
||||
)(AccountTransactionsListRoot);
|
||||
|
||||
const AccountsTransactionsAll = React.lazy(
|
||||
() => import('./AccountsTransactionsAll'),
|
||||
|
||||
Reference in New Issue
Block a user