a tool for shared writing and social publishing
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix type error

+13 -16
+13 -16
components/Canvas.tsx
··· 308 308 ); 309 309 let rotateHandle = useDrag({ onDragEnd: RotateOnDragEnd }); 310 310 311 - let { isLongPress, handlers: longPressHandlers } = useLongPress( 312 - () => { 313 - if (isLongPress.current && permissions.write) { 314 - focusBlock( 315 - { 316 - type: type?.data.value || "text", 317 - value: props.entityID, 318 - parent: props.parent, 319 - }, 320 - { type: "start" }, 321 - ); 322 - } 323 - }, 324 - () => {}, 325 - ); 311 + let { isLongPress, handlers: longPressHandlers } = useLongPress(() => { 312 + if (isLongPress.current && permissions.write) { 313 + focusBlock( 314 + { 315 + type: type?.data.value || "text", 316 + value: props.entityID, 317 + parent: props.parent, 318 + }, 319 + { type: "start" }, 320 + ); 321 + } 322 + }); 326 323 let angle = 0; 327 324 if (rotateHandle.dragDelta) { 328 325 let originX = rect.x + rect.width / 2; ··· 543 540 className="w-[9px] shrink-0 py-1 mr-1 bg-bg-card cursor-grab touch-none" 544 541 > 545 542 <Media mobile={false} className="h-full grid grid-cols-1 grid-rows-1 "> 546 - {/* the gripper is two svg's stacked on top of each other. 543 + {/* the gripper is two svg's stacked on top of each other. 547 544 One for the actual gripper, the other is an outline to endure the gripper stays visible on image backgrounds */} 548 545 <div 549 546 className="h-full col-start-1 col-end-2 row-start-1 row-end-2 bg-bg-page hidden group-hover/canvas-block:block"