diff --git a/frontend/src/components/ErrorContainer/ErrorContainer.tsx b/frontend/src/components/ErrorContainer/ErrorContainer.tsx index db80d45..3ef6638 100644 --- a/frontend/src/components/ErrorContainer/ErrorContainer.tsx +++ b/frontend/src/components/ErrorContainer/ErrorContainer.tsx @@ -1,19 +1,14 @@ import React from 'react'; import './ErrorContainer.scss'; -export interface ErrorContainerProperties { - message: string -} +const ErrorContainer: React.FC = (props: IErrorContainerProps) => ( +
+ {props.message} +
+) -class ErrorContainer extends React.Component { - - render() { - return ( -
- { this.props.message } -
- ) - } +export interface IErrorContainerProps { + message: string } export default ErrorContainer;