Removed dead code (#2345)

This commit is contained in:
Lucas Bordeau 2023-11-03 17:08:07 +01:00 committed by GitHub
parent 2221c68dff
commit aba3fd454b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 29 deletions

View File

@ -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,
});

View File

@ -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,
};
};