@@ -21,7 +21,7 @@ const ChunkInfo: FC<ChunkProps> = ({ loading, chunks, mode }) => {
2121 const [ neoRels , setNeoRels ] = useState < any [ ] > ( [ ] ) ;
2222 const [ openGraphView , setOpenGraphView ] = useState ( false ) ;
2323 const [ viewPoint , setViewPoint ] = useState ( '' ) ;
24- const [ _ , setLoadingGraphView ] = useState ( false ) ;
24+ const [ loadingGraphView , setLoadingGraphView ] = useState ( false ) ;
2525
2626 const handleChunkClick = ( elementId : string , viewMode : string ) => {
2727 handleGraphNodeClick (
@@ -73,7 +73,7 @@ const ChunkInfo: FC<ChunkProps> = ({ loading, chunks, mode }) => {
7373 < TextLink
7474 as = 'medium'
7575 label = 'Graph view'
76- className = 'cursor-pointer'
76+ className = { ` ${ loadingGraphView ? 'cursor-wait' : 'cursor- pointer'} ` }
7777 onClick = { ( ) => handleChunkClick ( chunk . element_id , 'Chunk' ) }
7878 > { 'Graph' }
7979 </ TextLink >
@@ -100,7 +100,7 @@ const ChunkInfo: FC<ChunkProps> = ({ loading, chunks, mode }) => {
100100 < div >
101101 < TextLink
102102 as = 'medium'
103- className = 'cursor-pointer'
103+ className = { ` ${ loadingGraphView ? 'cursor-wait' : 'cursor- pointer'} ` }
104104 label = 'Graph view'
105105 onClick = { ( ) => handleChunkClick ( chunk . element_id , 'Chunk' ) }
106106 > { 'Graph' }
@@ -123,7 +123,7 @@ const ChunkInfo: FC<ChunkProps> = ({ loading, chunks, mode }) => {
123123 < div >
124124 < TextLink
125125 as = 'medium'
126- className = 'cursor-pointer'
126+ className = { ` ${ loadingGraphView ? 'cursor-wait' : 'cursor- pointer'} ` }
127127 label = 'Graph view'
128128 onClick = { ( ) => handleChunkClick ( chunk . element_id , 'Chunk' ) }
129129 > { 'Graph' }
@@ -146,7 +146,7 @@ const ChunkInfo: FC<ChunkProps> = ({ loading, chunks, mode }) => {
146146 < div >
147147 < TextLink
148148 as = 'medium'
149- className = 'cursor-pointer'
149+ className = { ` ${ loadingGraphView ? 'cursor-wait' : 'cursor- pointer'} ` }
150150 label = 'Graph view'
151151 onClick = { ( ) => handleChunkClick ( chunk . element_id , 'Chunk' ) }
152152 > { 'Graph' }
@@ -169,7 +169,7 @@ const ChunkInfo: FC<ChunkProps> = ({ loading, chunks, mode }) => {
169169 < div >
170170 < TextLink
171171 as = 'medium'
172- className = 'cursor-pointer'
172+ className = { ` ${ loadingGraphView ? 'cursor-wait' : 'cursor- pointer'} ` }
173173 label = 'Graph view'
174174 onClick = { ( ) => handleChunkClick ( chunk . element_id , 'Chunk' ) }
175175 > { 'Graph' }
@@ -196,7 +196,7 @@ const ChunkInfo: FC<ChunkProps> = ({ loading, chunks, mode }) => {
196196 < div >
197197 < TextLink
198198 as = 'medium'
199- className = 'cursor-pointer'
199+ className = { ` ${ loadingGraphView ? 'cursor-wait' : 'cursor- pointer'} ` }
200200 label = 'Graph view'
201201 onClick = { ( ) => handleChunkClick ( chunk . element_id , 'Chunk' ) }
202202 > { 'Graph' }
@@ -228,7 +228,7 @@ const ChunkInfo: FC<ChunkProps> = ({ loading, chunks, mode }) => {
228228 < div >
229229 < TextLink
230230 as = 'medium'
231- className = 'cursor-pointer'
231+ className = { ` ${ loadingGraphView ? 'cursor-wait' : 'cursor- pointer'} ` }
232232 label = 'Graph view'
233233 onClick = { ( ) => handleChunkClick ( chunk . element_id , 'Chunk' ) }
234234 > { 'Graph' }
0 commit comments