// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React from 'react' type Props = { onDrop?: (e: React.DragEvent) => void } type State = { isDragOver?: boolean } class BoardColumn extends React.Component { constructor(props: Props) { super(props) this.state = {} } render() { const element = (
{ e.preventDefault() this.setState({isDragOver: true}) }} onDragEnter={(e) => { e.preventDefault() this.setState({isDragOver: true}) }} onDragLeave={(e) => { e.preventDefault() this.setState({isDragOver: false}) }} onDrop={(e) => { this.setState({isDragOver: false}) this.props.onDrop(e) }} > {this.props.children}
) return element } } export {BoardColumn}