Removed dead code (#2345)
This commit is contained in:
@ -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,
|
|
||||||
};
|
|
||||||
};
|
|
||||||
Reference in New Issue
Block a user