Skip to content

Commit

Permalink
allow for only dragging within column
Browse files Browse the repository at this point in the history
  • Loading branch information
tuckner committed Dec 19, 2023
1 parent 0e386d8 commit b37ab6f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/Board/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export default function Index() {
const [isOpenBoard, setOpenBoard] = useState(false);
const [isEditBoard, setEditBoard] = useState(false);


const onDragEnd = (result: any) => {
if (!result.destination) {
return;
Expand Down Expand Up @@ -69,7 +68,7 @@ export default function Index() {
/>
{item.name} ({item.tasks.length})
</p>
<Droppable droppableId={`${item.name}`}>
<Droppable droppableId={`${item.name}`} type={`${item.name}`}>
{(provided) => (
<div
{...provided.droppableProps}
Expand Down Expand Up @@ -121,7 +120,7 @@ export default function Index() {
className="font-bold text-xl cursor-pointer text-primary hover:opacity-20
fixed -translate-y-[50%] -translate-x-[50%] top-[50%] left-[50%]"
>
+ Create New Board
+ Create new board
</div>
)}
</div>
Expand Down

0 comments on commit b37ab6f

Please sign in to comment.