Database Connection Update #4
@@ -1,19 +1,14 @@
|
||||
import React from 'react';
|
||||
import './ErrorContainer.scss';
|
||||
|
||||
export interface ErrorContainerProperties {
|
||||
message: string
|
||||
}
|
||||
const ErrorContainer: React.FC<IErrorContainerProps> = (props: IErrorContainerProps) => (
|
||||
<div className="ErrorContainer" data-testid="ErrorContainer">
|
||||
{props.message}
|
||||
</div>
|
||||
)
|
||||
|
||||
class ErrorContainer extends React.Component<ErrorContainerProperties> {
|
||||
|
||||
render() {
|
||||
return (
|
||||
<div className="ErrorContainer" data-testid="ErrorContainer">
|
||||
{ this.props.message }
|
||||
</div>
|
||||
)
|
||||
}
|
||||
export interface IErrorContainerProps {
|
||||
message: string
|
||||
}
|
||||
|
||||
export default ErrorContainer;
|
||||
|
||||
Reference in New Issue
Block a user