feat(BalanceSheet|ProfitLoss): comparions feature.

This commit is contained in:
a.bouhuolia
2022-01-29 20:46:41 +02:00
parent 735803f1a5
commit 77d826e6d4
17 changed files with 795 additions and 283 deletions

View File

@@ -0,0 +1,14 @@
import React from 'react';
import { dynamicColumns } from './utils';
import { useProfitLossSheetContext } from './ProfitLossProvider';
export const useProfitLossSheetColumns = () => {
const {
profitLossSheet: { table },
} = useProfitLossSheetContext();
return React.useMemo(
() => dynamicColumns(table.columns || [], table.rows || []),
[table],
);
};