Skip to content

Commit abca406

Browse files
committed
fix: remove unused code
1 parent 1d9575a commit abca406

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

compose/neurosynth-frontend/src/components/Visualizer/NiiVueVisualizer.tsx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1-
import { Box, Button, Checkbox, Link, Slider, TextField, Typography } from '@mui/material';
2-
import { ChangeEvent, useCallback, useEffect, useRef, useState } from 'react';
3-
import { Niivue, SHOW_RENDER } from '@niivue/niivue';
41
import { Download, OpenInNew } from '@mui/icons-material';
52
import ImageIcon from '@mui/icons-material/Image';
3+
import { Box, Button, Checkbox, Link, Typography } from '@mui/material';
4+
import { Niivue, SHOW_RENDER } from '@niivue/niivue';
5+
import { ChangeEvent, useCallback, useEffect, useRef, useState } from 'react';
66
import ThresholdSlider from './ThresholdSlider';
7-
import StateHandlerComponent from 'components/StateHandlerComponent/StateHandlerComponent';
8-
9-
let thresholdDebounce: NodeJS.Timeout;
107

118
const NiiVueVisualizer: React.FC<{ file: string; filename: string; neurovaultLink?: string }> = ({
129
file,
@@ -20,7 +17,6 @@ const NiiVueVisualizer: React.FC<{ file: string; filename: string; neurovaultLin
2017
const [disableNegatives, setDisableNegatives] = useState(false);
2118
const [showCrosshairs, setShowCrosshairs] = useState(true);
2219
const [brainCoordinateString, setBrainCoordinateString] = useState('');
23-
const [isLoading, setIsLoading] = useState(false);
2420

2521
const [threshold, setThreshold] = useState<{
2622
min: number;
@@ -219,7 +215,6 @@ const NiiVueVisualizer: React.FC<{ file: string; filename: string; neurovaultLin
219215

220216
return (
221217
<Box>
222-
{/* <StateHandlerComponent isLoading={isLoading} isError={false}> */}
223218
<Box sx={{ marginBottom: '10px', display: 'flex', justifyContent: 'space-between' }}>
224219
<Box width="250px">
225220
<ThresholdSlider
@@ -265,7 +260,6 @@ const NiiVueVisualizer: React.FC<{ file: string; filename: string; neurovaultLin
265260
</Box>
266261
</Box>
267262
</Box>
268-
{/* </StateHandlerComponent> */}
269263
<Box sx={{ height: '32px' }}>
270264
{brainCoordinateString && (
271265
<Box

0 commit comments

Comments
 (0)