From 6f571cb92a2948952a7fa5ea0843bdbc4affde64 Mon Sep 17 00:00:00 2001 From: Ivan Chen Date: Fri, 21 May 2021 18:38:39 -0400 Subject: Remove commented code --- src/components/taggs/TaggDraggable.tsx | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) (limited to 'src/components') diff --git a/src/components/taggs/TaggDraggable.tsx b/src/components/taggs/TaggDraggable.tsx index 0a0d18d9..a6ffb1ef 100644 --- a/src/components/taggs/TaggDraggable.tsx +++ b/src/components/taggs/TaggDraggable.tsx @@ -26,26 +26,13 @@ const TaggDraggable: React.FC = ( props: TaggDraggableProps, ) => { const navigation = useNavigation(); - - const {taggedUser, editingView, deleteFromList, setStart} = props; - const state = useSelector((rs: RootState) => rs); - const dispatch = useDispatch(); + const state = useSelector((rs: RootState) => rs); + const {taggedUser, editingView, deleteFromList, setStart} = props; let uriX = require('../../assets/images/draggableX.png'); let uriTip = require('../../assets/images/Tagg-Triangle.png'); const draggableRef = useRef(null); - // useEffect(() => { - // draggableRef.current.measure((fx, fy, width, height, px, py) => { - // // console.log('Drag Component width is: ' + width); - // // console.log('Drag Component height is: ' + height); - // // console.log('X offset to frame: ' + fx); - // // console.log('Y offset to frame: ' + fy); - // // console.log('X offset to page: ' + px); - // // console.log('Y offset to page: ' + py); - // setStart([width, height]); - // }); - // }, []); useEffect(() => { draggableRef.current.measure((width: number, height: number) => { -- cgit v1.2.3-70-g09d2