mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 14:20:31 +00:00
feat: toggle banking matching aside
This commit is contained in:
@@ -1,10 +1,16 @@
|
||||
// @ts-nocheck
|
||||
import styled from 'styled-components';
|
||||
import * as R from 'ramda';
|
||||
|
||||
import '@/style/pages/CashFlow/AccountTransactions/List.scss';
|
||||
|
||||
import AccountTransactionsUncategorizedTable from './AccountTransactionsUncategorizedTable';
|
||||
import { AccountUncategorizedTransactionsBoot } from './AllTransactionsUncategorizedBoot';
|
||||
import {
|
||||
WithBankingActionsProps,
|
||||
withBankingActions,
|
||||
} from '../withBankingActions';
|
||||
import { useEffect } from 'react';
|
||||
|
||||
const Box = styled.div`
|
||||
margin: 30px 15px;
|
||||
@@ -18,7 +24,18 @@ const CashflowTransactionsTableCard = styled.div`
|
||||
flex: 0 1;
|
||||
`;
|
||||
|
||||
export default function AllTransactionsUncategorized() {
|
||||
interface AllTransactionsUncategorizedProps extends WithBankingActionsProps {}
|
||||
|
||||
function AllTransactionsUncategorizedRoot({
|
||||
// #withBankingActions
|
||||
closeMatchingTransactionAside,
|
||||
}: AllTransactionsUncategorizedProps) {
|
||||
useEffect(
|
||||
() => () => {
|
||||
closeMatchingTransactionAside();
|
||||
},
|
||||
[closeMatchingTransactionAside],
|
||||
);
|
||||
return (
|
||||
<AccountUncategorizedTransactionsBoot>
|
||||
<Box>
|
||||
@@ -29,3 +46,5 @@ export default function AllTransactionsUncategorized() {
|
||||
</AccountUncategorizedTransactionsBoot>
|
||||
);
|
||||
}
|
||||
|
||||
export default R.compose(withBankingActions)(AllTransactionsUncategorizedRoot);
|
||||
|
||||
Reference in New Issue
Block a user