Skip to content

Commit

Permalink
fix: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoalee committed Jan 14, 2025
1 parent 1d9575a commit abca406
Showing 1 changed file with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import { Box, Button, Checkbox, Link, Slider, TextField, Typography } from '@mui/material';
import { ChangeEvent, useCallback, useEffect, useRef, useState } from 'react';
import { Niivue, SHOW_RENDER } from '@niivue/niivue';
import { Download, OpenInNew } from '@mui/icons-material';
import ImageIcon from '@mui/icons-material/Image';
import { Box, Button, Checkbox, Link, Typography } from '@mui/material';
import { Niivue, SHOW_RENDER } from '@niivue/niivue';
import { ChangeEvent, useCallback, useEffect, useRef, useState } from 'react';
import ThresholdSlider from './ThresholdSlider';
import StateHandlerComponent from 'components/StateHandlerComponent/StateHandlerComponent';

let thresholdDebounce: NodeJS.Timeout;

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

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

return (
<Box>
{/* <StateHandlerComponent isLoading={isLoading} isError={false}> */}
<Box sx={{ marginBottom: '10px', display: 'flex', justifyContent: 'space-between' }}>
<Box width="250px">
<ThresholdSlider
Expand Down Expand Up @@ -265,7 +260,6 @@ const NiiVueVisualizer: React.FC<{ file: string; filename: string; neurovaultLin
</Box>
</Box>
</Box>
{/* </StateHandlerComponent> */}
<Box sx={{ height: '32px' }}>
{brainCoordinateString && (
<Box
Expand Down

0 comments on commit abca406

Please sign in to comment.