diff --git a/src/components/auth/authError/AuthError.jsx b/src/components/auth/authError/AuthError.jsx
index 00192d3..10e09b7 100644
--- a/src/components/auth/authError/AuthError.jsx
+++ b/src/components/auth/authError/AuthError.jsx
@@ -1,25 +1,18 @@
-import React, { Component, PropTypes } from 'react';
+import React, { PropTypes } from 'react';
import errorsDict from 'services/errorsDict';
import { PanelBodyHeader } from 'components/ui/Panel';
-export default class AuthError extends Component {
- static displayName = 'AuthError';
-
- static propTypes = {
- error: PropTypes.string.isRequired,
- onClose: PropTypes.func
- };
-
- render() {
- let { error } = this.props;
-
- error = errorsDict.resolve(error);
-
- return (
-
- {error}
-
- );
- }
+export default function AuthError({error, onClose = function() {}}) {
+ return (
+
+ {errorsDict.resolve(error)}
+
+ );
}
+
+AuthError.displayName = 'AuthError';
+AuthError.propTypes = {
+ error: PropTypes.string.isRequired,
+ onClose: PropTypes.func
+};