diff --git a/app/components/GlobalError/GlobalError.js b/app/components/GlobalError/GlobalError.js index 75f09a1e..8707296b 100644 --- a/app/components/GlobalError/GlobalError.js +++ b/app/components/GlobalError/GlobalError.js @@ -3,16 +3,20 @@ import PropTypes from 'prop-types' import { MdClose } from 'react-icons/lib/md' import styles from './GlobalError.scss' -const GlobalError = ({ error, clearError }) => ( -
-
-
- +const GlobalError = ({ error, clearError }) => { + setTimeout(clearError, 10000) + + return ( +
+
+
+ +
+

{error}

-

{error}

-
-) + ) +} GlobalError.propTypes = {