@@ -10,7 +10,7 @@ import SVGInline from 'react-svg-inline';
10
10
import classNames from 'classnames' ;
11
11
import { VIEWS } from '../../constants/constants' ;
12
12
import { NglContext } from '../nglView/nglProvider' ;
13
- import { useDisableUserInteraction } from '../helpers/useEnableUserInteracion' ;
13
+ // import { useDisableUserInteraction } from '../helpers/useEnableUserInteracion';
14
14
import {
15
15
addDatasetLigand ,
16
16
removeDatasetLigand ,
@@ -292,7 +292,7 @@ export const DatasetMoleculeView = memo(
292
292
293
293
const areArrowsVisible = isLigandOn || isProteinOn || isComplexOn || isSurfaceOn ;
294
294
295
- const disableUserInteraction = useDisableUserInteraction ( ) ;
295
+ // const disableUserInteraction = useDisableUserInteraction();
296
296
297
297
const refOnCancelImage = useRef ( ) ;
298
298
const getRandomColor = ( ) => colourList [ currentID % colourList . length ] ;
@@ -642,7 +642,7 @@ export const DatasetMoleculeView = memo(
642
642
onClick = { ( ) => {
643
643
dispatch ( centerOnLigandByMoleculeID ( stage , getDatasetMoleculeID ( datasetID , currentID ) ) ) ;
644
644
} }
645
- disabled = { disableUserInteraction || ! isLigandOn }
645
+ disabled = { false || ! isLigandOn }
646
646
>
647
647
< MyLocation className = { classes . myLocation } />
648
648
</ Button >
@@ -669,7 +669,7 @@ export const DatasetMoleculeView = memo(
669
669
onProtein ( true ) ;
670
670
onComplex ( true ) ;
671
671
} }
672
- disabled = { disableUserInteraction }
672
+ disabled = { false }
673
673
>
674
674
A
675
675
</ Button >
@@ -683,7 +683,7 @@ export const DatasetMoleculeView = memo(
683
683
[ classes . contColButtonSelected ] : isLigandOn
684
684
} ) }
685
685
onClick = { ( ) => onLigand ( ) }
686
- disabled = { disableUserInteraction }
686
+ disabled = { false }
687
687
>
688
688
L
689
689
</ Button >
@@ -697,7 +697,7 @@ export const DatasetMoleculeView = memo(
697
697
[ classes . contColButtonSelected ] : isProteinOn
698
698
} ) }
699
699
onClick = { ( ) => onProtein ( ) }
700
- disabled = { disableUserInteraction }
700
+ disabled = { false }
701
701
>
702
702
P
703
703
</ Button >
@@ -712,7 +712,7 @@ export const DatasetMoleculeView = memo(
712
712
[ classes . contColButtonSelected ] : isComplexOn
713
713
} ) }
714
714
onClick = { ( ) => onComplex ( ) }
715
- disabled = { disableUserInteraction }
715
+ disabled = { false }
716
716
>
717
717
C
718
718
</ Button >
@@ -726,7 +726,7 @@ export const DatasetMoleculeView = memo(
726
726
[ classes . contColButtonSelected ] : isSurfaceOn
727
727
} ) }
728
728
onClick = { ( ) => onSurface ( ) }
729
- disabled = { disableUserInteraction }
729
+ disabled = { false }
730
730
>
731
731
S
732
732
</ Button >
@@ -752,7 +752,7 @@ export const DatasetMoleculeView = memo(
752
752
setRef ( ref . current ) ;
753
753
}
754
754
} }
755
- disabled = { disableUserInteraction }
755
+ disabled = { false }
756
756
>
757
757
F
758
758
</ Button >
@@ -774,7 +774,7 @@ export const DatasetMoleculeView = memo(
774
774
setRef ( ref . current ) ;
775
775
}
776
776
} }
777
- disabled = { true || disableUserInteraction }
777
+ disabled = { true || false }
778
778
>
779
779
X
780
780
</ Button >
@@ -835,7 +835,7 @@ export const DatasetMoleculeView = memo(
835
835
< IconButton
836
836
color = "primary"
837
837
size = "small"
838
- disabled = { disableUserInteraction || ! previousItemData || ! areArrowsVisible }
838
+ disabled = { false || ! previousItemData || ! areArrowsVisible }
839
839
onClick = { handleClickOnUpArrow }
840
840
>
841
841
< ArrowUpward className = { areArrowsVisible ? classes . arrow : classes . invisArrow } />
@@ -845,7 +845,7 @@ export const DatasetMoleculeView = memo(
845
845
< IconButton
846
846
color = "primary"
847
847
size = "small"
848
- disabled = { disableUserInteraction || ! nextItemData || ! areArrowsVisible }
848
+ disabled = { false || ! nextItemData || ! areArrowsVisible }
849
849
onClick = { handleClickOnDownArrow }
850
850
>
851
851
< ArrowDownward className = { areArrowsVisible ? classes . arrow : classes . invisArrow } />
0 commit comments