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 (
- {showButton ? - () : - ( -

- Drag and drop HAR file here, or click to select - file -

- )} + {showButton ? : ( +

+ Drag and drop HAR file here, or click to select + file +

+ )}
); }; ImportHar.propTypes = { - className: PropTypes.string, showButton: PropTypes.bool, }; ImportHar.defaultProps = { - className: null, showButton: true, }; diff --git a/tests/__tests__/Components/Import/__snapshots__/ImportHar.spec.jsx.snap b/tests/__tests__/Components/Import/__snapshots__/ImportHar.spec.jsx.snap index fad4c56..b9189e2 100644 --- a/tests/__tests__/Components/Import/__snapshots__/ImportHar.spec.jsx.snap +++ b/tests/__tests__/Components/Import/__snapshots__/ImportHar.spec.jsx.snap @@ -61,7 +61,6 @@ exports[`ImportHAR renders without crashing 1`] = ` scrollTimeStamp={null} >