* kaban header options * gql codegn * moveColumn hook refactor * BoardColumnContext addition * saved board columns state * db call hook update * lint fix * state change first db call second * handleMoveTableColumn call * codegen lint fix * useMoveViewColumns hook * useBoardColumns db call addition * boardColumns state change from BoardHeader --------- Co-authored-by: Charles Bochet <charles@twenty.com>
13 lines
321 B
TypeScript
13 lines
321 B
TypeScript
import { createContext } from 'react';
|
|
|
|
import { BoardColumnDefinition } from '../types/BoardColumnDefinition';
|
|
|
|
type BoardColumn = {
|
|
id: string;
|
|
columnDefinition: BoardColumnDefinition;
|
|
isFirstColumn: boolean;
|
|
isLastColumn: boolean;
|
|
};
|
|
|
|
export const BoardColumnContext = createContext<BoardColumn | null>(null);
|