UNPKG

react-beautiful-dnd

Version:

Beautiful, accessible drag and drop for lists with React.js

7 lines (6 loc) 285 B
// @flow import type { State } from '../types'; // Using function declaration as arrow function does not play well with the %checks syntax export default function isMovementAllowed(state: State): boolean %checks { return state.phase === 'DRAGGING' || state.phase === 'COLLECTING'; }