Revert "feat(BS|PL): sticky columns in RTL mode."

This reverts commit 200a59d6da.
This commit is contained in:
a.bouhuolia
2022-02-09 21:32:36 +02:00
parent 200a59d6da
commit d22143c97e
4 changed files with 22 additions and 25 deletions

View File

@@ -1,23 +1,19 @@
import React from 'react';
import { dynamicColumns } from './dynamicColumns';
import { useProfitLossSheetContext } from './ProfitLossProvider';
import { useAppIntlContext } from '../../../components/AppIntlProvider';
/**
* Retrieves the profit/loss table columns.
* @returns
* @returns
*/
export const useProfitLossSheetColumns = () => {
const {
profitLossSheet: { table },
} = useProfitLossSheetContext();
const { direction } = useAppIntlContext();
return React.useMemo(
() => dynamicColumns(direction, table.columns, table.rows),
[direction, table],
() => dynamicColumns(table.columns || [], table.rows || []),
[table],
);
};