Files
twenty_crm/front/src/modules/ui/table/states/availableTableColumnsScopedState.ts
Thaïs 4aae22ab34 feat: allow adding available pre-defined table columns to views (#1371)
* feat: allow adding available pre-defined table columns to views

Closes #1360

* fix: allow creating views with the same name for the same table

* refactor: code review

- rename things
- move handleColumnVisibilityChange to useTableColumns hook
2023-08-30 11:33:21 +02:00

14 lines
361 B
TypeScript

import { atomFamily } from 'recoil';
import type { ViewFieldMetadata } from '@/ui/editable-field/types/ViewField';
import type { ColumnDefinition } from '../types/ColumnDefinition';
export const availableTableColumnsScopedState = atomFamily<
ColumnDefinition<ViewFieldMetadata>[],
string
>({
key: 'availableTableColumnsScopedState',
default: [],
});