Skip to content

Commit

Permalink
Convert PageNotFound to function component
Browse files Browse the repository at this point in the history
  • Loading branch information
emilpaw committed Jun 16, 2022
1 parent 9ad4bbd commit 99424f5
Showing 1 changed file with 9 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,14 @@ import React from 'react';
import { Translate } from 'react-jhipster';
import { Alert } from 'reactstrap';

class PageNotFound extends React.Component {
render() {
return (
<div>
<Alert color="danger">
<Translate contentKey="error.http.404">
The page does not exist.
</Translate>
</Alert>
</div>
);
}
}
const PageNotFound = () => {
return (
<div>
<Alert color="danger">
<Translate contentKey="error.http.404">The page does not exist.</Translate>
</Alert>
</div>
);
};

export default PageNotFound;

0 comments on commit 99424f5

Please sign in to comment.