Files
twenty/front/src/modules/ui/table/hooks/useCurrentEntityId.ts
T
ThaïsandGitHub 3978ef4edb feat: change column visibility on add (#1174)
* feat: change column visibility on add

* refactor: extract views business logic from table
2023-08-11 12:38:20 -07:00

10 lines
216 B
TypeScript

import { useContext } from 'react';
import { RowIdContext } from '../states/RowIdContext';
export function useCurrentRowEntityId() {
const currentEntityId = useContext(RowIdContext);
return currentEntityId;
}