PageNotFound.js 1009 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6. import * as React from "../../../../common/keycloak/web_modules/react.js";
  7. import { WarningTriangleIcon } from "../../../../common/keycloak/web_modules/@patternfly/react-icons.js";
  8. import { withRouter } from "../../../../common/keycloak/web_modules/react-router-dom.js";
  9. import { Msg } from "../../widgets/Msg.js";
  10. import EmptyMessageState from "../../widgets/EmptyMessageState.js";
  11. class PgNotFound extends React.Component {
  12. constructor(props) {
  13. super(props);
  14. }
  15. render() {
  16. return React.createElement(EmptyMessageState, {
  17. icon: WarningTriangleIcon,
  18. messageKey: "pageNotFound"
  19. }, React.createElement(Msg, {
  20. msgKey: "invalidRoute",
  21. params: [this.props.location.pathname]
  22. }));
  23. }
  24. }
  25. ;
  26. export const PageNotFound = withRouter(PgNotFound);
  27. //# sourceMappingURL=PageNotFound.js.map