diff --git a/src/Components/Import/ImportHAR.jsx b/src/Components/Import/ImportHAR.jsx index 43efee7..71502ac 100644 --- a/src/Components/Import/ImportHAR.jsx +++ b/src/Components/Import/ImportHAR.jsx @@ -4,8 +4,6 @@ import { useDropzone } from 'react-dropzone'; import { useNetwork } from './../../state/network/Context'; import Styles from './ImportHAR.styles.scss'; -import Button from './../Common/Button'; -import IconUpload from '../../icons/IconImport'; import ImportHarButton from '../Actions/ImportHarButton'; const DROP_FILE_CONFIG = { @@ -13,10 +11,7 @@ const DROP_FILE_CONFIG = { multiple: false, }; -const ImportHar = ({ - showButton, - className, -}) => { +const ImportHar = ({ showButton }) => { const { actions } = useNetwork(); const { updateErrorMessage } = actions; @@ -48,25 +43,21 @@ const ImportHar = ({ return (
- Drag and drop HAR file here, or click to select - file -
- )} + {showButton ?+ Drag and drop HAR file here, or click to select + file +
+ )}