mirror of
https://github.com/twentyhq/twenty.git
synced 2025-01-01 16:51:46 +03:00
Removed dead code (#2345)
This commit is contained in:
parent
2221c68dff
commit
aba3fd454b
@ -1,12 +0,0 @@
|
||||
import { atomFamily } from 'recoil';
|
||||
|
||||
import { TableCellInitialValue } from '../types/TableCellInitialValue';
|
||||
import { TableCellPosition } from '../types/TableCellPosition';
|
||||
|
||||
export const tableCellInitialValueFamilyState = atomFamily<
|
||||
TableCellInitialValue | undefined,
|
||||
TableCellPosition
|
||||
>({
|
||||
key: 'tableCellInitialValueFamilyState',
|
||||
default: undefined,
|
||||
});
|
@ -1,17 +0,0 @@
|
||||
import { useRecoilState } from 'recoil';
|
||||
|
||||
import { tableCellInitialValueFamilyState } from '../../states/tableCellInitialValueFamilyState';
|
||||
|
||||
import { useCurrentTableCellPosition } from './useCurrentCellPosition';
|
||||
|
||||
export const useCurrentTableCellInitialValue = () => {
|
||||
const currentTableCellPosition = useCurrentTableCellPosition();
|
||||
|
||||
const [currentTableCellInitialValue, setCurrentTableCellInitialValue] =
|
||||
useRecoilState(tableCellInitialValueFamilyState(currentTableCellPosition));
|
||||
|
||||
return {
|
||||
currentTableCellInitialValue,
|
||||
setCurrentTableCellInitialValue,
|
||||
};
|
||||
};
|
Loading…
Reference in New Issue
Block a user