Commit 6fb426db authored by Aron Fiechter's avatar Aron Fiechter
Browse files

Remove unused vars

parent 7b9667f8
import React, { useRef } from 'react';
import React from 'react';
import { useSelector } from 'react-redux';
import { selectLoading } from './navbar/querySlice';
import LoadingOverlay from 'react-loading-overlay';
......@@ -20,7 +20,7 @@ export default function Main() {
}),
}}
>
<Voronoi className='mt-sm-2' width={800} height={800} padding={5} />
<Voronoi className="mt-sm-2" width={800} height={800} padding={5} />
</LoadingOverlay>
);
}
import React, { useState } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import { closeModal, selectShowModal } from './searchSlice';
import { performQuery, selectError } from '../navbar/querySlice';
import { performQuery } from '../navbar/querySlice';
import Form from 'react-bootstrap/Form';
import Button from 'react-bootstrap/Button';
import Modal from 'react-bootstrap/Modal';
import Row from 'react-bootstrap/Row';
import Col from 'react-bootstrap/Col';
export default function SearchModal(props) {
export default function SearchModal() {
// Search fields
const [allData, setAllData] = useState('');
const [metadata, setMetadata] = useState('');
......@@ -26,7 +26,6 @@ export default function SearchModal(props) {
// Dispatch and selectors used in this component
const dispatch = useDispatch();
const showModal = useSelector(selectShowModal);
const error = useSelector(selectError);
// Function to close modal
const handleClose = () => dispatch(closeModal());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment