aboutsummaryrefslogtreecommitdiff
path: root/src/components/taggs
diff options
context:
space:
mode:
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) => {