mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 21:30:31 +00:00
Revert "feat(BS|PL): sticky columns in RTL mode."
This reverts commit 200a59d6da.
This commit is contained in:
@@ -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],
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user