Commit 136f7423 authored by Patrik Tomov's avatar Patrik Tomov
Browse files

Changed button to switch

parent e4c71824
Loading
Loading
Loading
Loading
+18 −7
Original line number Diff line number Diff line
import React, { useMemo } from 'react';
import {
	Button,
	FormControlLabel,
	Grid,
	IconButton,
	InputLabel,
	MenuItem,
	Select,
	Switch,
	Typography
} from '@mui/material';
import { Help } from '@mui/icons-material';
@@ -189,13 +191,22 @@ const BatchVisualizationPanel = () => {
						<span style={{ fontWeight: 'bold' }}>Layout mode:</span>
					</Grid>
					<Grid item>
						<Button
							variant="contained"
							onClick={() => toggleSelectionMode()}
							sx={{ height: '30px', width: '130px' }}
						>
							Switch {!selectionMode ? 'on' : 'off'}
						</Button>
						<FormControlLabel
							control={
								<Switch
									checked={selectionMode}
									onChange={() => toggleSelectionMode()}
									color="primary"
								/>
							}
							label={`${selectionMode ? 'on' : 'off'}`}
							sx={{
								height: '30px',
								width: '130px',
								alignItems: 'center',
								justifyContent: 'center'
							}}
						/>
					</Grid>
					<Grid item>
						<IconButton