Files
twenty/packages/twenty-front/src/modules/spreadsheet-import/states/spreadsheetImportDialogState.ts
Aryan Singh 5c8fe027f9 5425 - Introducing support for all Composite Fields Import (#5470)
Adding support for all Composite Fields while using the "import"
functionality. This includes:
- Currency
- Address

Edit : 
- Refactored a lot of types in the spreadsheet import module
- Renamed a lot of functions, hooks and types that were not
self-explanatory enough

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
Co-authored-by: Félix Malfait <felix.malfait@gmail.com>
Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
2024-07-23 18:02:23 +02:00

19 lines
470 B
TypeScript

import { createState } from 'twenty-ui';
import { SpreadsheetImportDialogOptions } from '../types';
export type SpreadsheetImportDialogState<T extends string> = {
isOpen: boolean;
options: Omit<SpreadsheetImportDialogOptions<T>, 'isOpen' | 'onClose'> | null;
};
export const spreadsheetImportDialogState = createState<
SpreadsheetImportDialogState<any>
>({
key: 'spreadsheetImportDialogState',
defaultValue: {
isOpen: false,
options: null,
},
});