* 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
14 lines
361 B
TypeScript
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: [],
|
|
});
|