* wip * wip * Ok * Deleted unused code * Fixed lint * Minor fixes * Minor fixes * Minor Fixes * Minor merge fixes * Ok * Fix storybook tests * Removed console.log * Fix login * asd * Fixed storybook * Added await * Fixed await * Added sleep for failing test * Fix sleep * Fix test * Fix tests --------- Co-authored-by: Charles Bochet <charles@twenty.com>
15 lines
303 B
TypeScript
15 lines
303 B
TypeScript
import { useContext } from 'react';
|
|
|
|
import { RowIdContext } from '../states/RowIdContext';
|
|
|
|
export type TableDimensions = {
|
|
numberOfColumns: number;
|
|
numberOfRows: number;
|
|
};
|
|
|
|
export function useCurrentRowEntityId() {
|
|
const currentEntityId = useContext(RowIdContext);
|
|
|
|
return currentEntityId;
|
|
}
|