79f3fbb016
This reverts commit cc71394863.
Regression introduced in https://github.com/twentyhq/twenty/pull/13213
The import/export use an upsert logic and when it goes through the
"update" path it fails due to the connect not being implemented yet
(should be in https://github.com/twentyhq/core-team-issues/issues/1230)
---------
Co-authored-by: prastoin <paul@twenty.com>
15 lines
576 B
TypeScript
15 lines
576 B
TypeScript
import { useContext } from 'react';
|
|
import { SetRequired } from 'type-fest';
|
|
|
|
import { RsiContext } from '@/spreadsheet-import/components/ReactSpreadsheetImportContextProvider';
|
|
import { defaultSpreadsheetImportProps } from '@/spreadsheet-import/provider/components/SpreadsheetImport';
|
|
import { SpreadsheetImportDialogOptions } from '@/spreadsheet-import/types';
|
|
|
|
export const useSpreadsheetImportInternal = <T extends string>() =>
|
|
useContext<
|
|
SetRequired<
|
|
SpreadsheetImportDialogOptions<T>,
|
|
keyof typeof defaultSpreadsheetImportProps
|
|
>
|
|
>(RsiContext);
|