feat: pointer cursor for boards and deals

This commit is contained in:
2025-08-05 16:52:26 +04:00
parent 236c0dcf10
commit c13cc4a0a5
4 changed files with 13 additions and 5 deletions

View File

@ -1,11 +1,12 @@
import React, { ReactNode, useContext } from "react";
import React, { CSSProperties, ReactNode, useContext } from "react";
import SortableItemContext from "@/components/SortableDnd/SortableItemContext";
type Props = {
children: ReactNode;
style?: CSSProperties;
};
const DragHandle = ({ children }: Props) => {
const DragHandle = ({ children, style }: Props) => {
const { attributes, listeners, ref } = useContext(SortableItemContext);
return (
@ -15,6 +16,7 @@ const DragHandle = ({ children }: Props) => {
style={{
width: "100%",
cursor: "grab",
...style,
}}
ref={ref}>
{children}