Fix broken main branch (#13685)

Main branch had changed in the meantime and these components had been
deprecated
This commit is contained in:
Félix Malfait
2025-08-06 14:33:09 +02:00
committed by GitHub
parent 25c4af8feb
commit d74bcbe62b
2 changed files with 7 additions and 7 deletions
@@ -3,20 +3,20 @@ import { recordIndexAllRecordIdsComponentSelector } from '@/object-record/record
import { useRecordTableContextOrThrow } from '@/object-record/record-table/contexts/RecordTableContext';
import { useCreateNewIndexRecord } from '@/object-record/record-table/hooks/useCreateNewIndexRecord';
import { RecordTableActionRow } from '@/object-record/record-table/record-table-row/components/RecordTableActionRow';
import { hasRecordTableFetchedAllRecordsComponentStateV2 } from '@/object-record/record-table/states/hasRecordTableFetchedAllRecordsComponentStateV2';
import { useRecoilComponentValueV2 } from '@/ui/utilities/state/component-state/hooks/useRecoilComponentValueV2';
import { hasRecordTableFetchedAllRecordsComponentState } from '@/object-record/record-table/states/hasRecordTableFetchedAllRecordsComponentState';
import { useRecoilComponentValue } from '@/ui/utilities/state/component-state/hooks/useRecoilComponentValue';
import { t } from '@lingui/core/macro';
import { IconPlus } from 'twenty-ui/display';
export const RecordTableAddNew = () => {
const { objectMetadataItem } = useRecordTableContextOrThrow();
const recordIds = useRecoilComponentValueV2(
const recordIds = useRecoilComponentValue(
recordIndexAllRecordIdsComponentSelector,
);
const hasRecordTableFetchedAllRecords = useRecoilComponentValueV2(
hasRecordTableFetchedAllRecordsComponentStateV2,
const hasRecordTableFetchedAllRecords = useRecoilComponentValue(
hasRecordTableFetchedAllRecordsComponentState,
);
const { createNewIndexRecord } = useCreateNewIndexRecord({