diff --git a/webapp/src/components/contentBlock.tsx b/webapp/src/components/contentBlock.tsx index ac6212719..0e416498a 100644 --- a/webapp/src/components/contentBlock.tsx +++ b/webapp/src/components/contentBlock.tsx @@ -17,7 +17,7 @@ import SortUpIcon from '../widgets/icons/sortUp' import GripIcon from '../widgets/icons/grip' import Menu from '../widgets/menu' import MenuWrapper from '../widgets/menuWrapper' -import useSortable from '../hooks/sortable' +import {useSortableWithGrip} from '../hooks/sortable' import ContentElement from './content/contentElement' import AddContentMenuItem from './addContentMenuItem' @@ -35,7 +35,7 @@ type Props = { const ContentBlock = React.memo((props: Props): JSX.Element => { const {intl, card, contents, block, readonly} = props - const [isDragging, isOver, dragRef, previewRef] = useSortable('content', block, true, props.onDrop) + const [isDragging, isOver, gripRef, itemRef] = useSortableWithGrip('content', block, true, props.onDrop) const index = contents.indexOf(block) let className = 'ContentBlock octo-block' @@ -46,7 +46,7 @@ const ContentBlock = React.memo((props: Props): JSX.Element => {