Skip to content
Snippets Groups Projects
Select Git revision
  • af4f7269314171b65cbdd1fa2c56aa7975f06208
  • main default protected
2 results

CombinationBox.jsx

Blame
  • TableCell.jsx 469 B
    import { useEffect } from "react";
    
    export default function TableCell({k, cn, newDate, hds, hdw, hde, i, value}){
        // useEffect(() => { console.log(k)}, []);
        return(
            <td className={cn}
            key={k}
            id={k} 
            draggable
            onDragStart={()=>hds(newDate, i, k)}
            onDragEnter={()=>hdw(newDate, i, k)}
            onDragEnd={()=>hde(newDate, i)}
            onClick={()=>console.log(newDate.getMonth() + 1)}>
            {value} </td>
        );
    }