Skip to content
Snippets Groups Projects
Select Git revision
1 result Searching

infiniteScroll.js

Blame
  • TableCell.jsx 636 B
    import { useEffect } from "react";
    
    export default function TableCell({k, cn, handleClick, newDate, hds, hdw, hde, i, value  }){
        if(cn==="noDate"){
            return(
                <td className={cn}
                key={k}
                id={k} >
                {value} </td>
            );
        }
        else{
            return(
                <td className={cn}
                key={k}
                id={k} 
                draggable
                onDragStart={()=>hds(newDate, i, k)}
                onDragEnter={()=>hdw(newDate, i, k)}
                onDragEnd={()=>hde(newDate, i)}
                onClick={()=>handleClick(newDate)}>
                {value} </td>
            );
        }
    }