aboutsummaryrefslogtreecommitdiff
path: root/src/components/taggs
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-05-21 18:38:39 -0400
committerIvan Chen <ivan@tagg.id>2021-05-21 18:38:39 -0400
commit6f571cb92a2948952a7fa5ea0843bdbc4affde64 (patch)
tree4c4c0581038738885fb0ad05e73cec1070a9aa56 /src/components/taggs
parent3ee7b70b28b03cebc73d04ba69a11e915466d5e1 (diff)
Remove commented code
Diffstat (limited to 'src/components/taggs')
-rw-r--r--src/components/taggs/TaggDraggable.tsx17
1 files changed, 2 insertions, 15 deletions
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<TaggDraggableProps> = (
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) => {