Skip to content

Commit

Permalink
Correct broken static references
Browse files Browse the repository at this point in the history
  • Loading branch information
MVarshini authored Jan 6, 2023
1 parent 44ddd7d commit 6a764f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import "./index.less";

import { Button } from "@patternfly/react-core";
import { HOME } from "utils/routeConstants";
import React from "react";
import logo from "assets/images/page_not_found.png";
import pbenchLogo from "assets/logo/pbench_logo.svg";
Expand All @@ -14,7 +15,7 @@ const NoMatchingPage = () => {
<img
className="pbench-logo"
alt="pbench logo"
onClick={() => navigate("/")}
onClick={() => navigate("/" + HOME)}
src={pbenchLogo}
/>
</div>
Expand All @@ -29,7 +30,7 @@ const NoMatchingPage = () => {
/>
</div>
</div>
<Button variant="link" onClick={() => navigate("/")}>
<Button variant="link" onClick={() => navigate("/" + HOME)}>
Go to Home
</Button>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
} from "@patternfly/react-core";

import CubesIcon from "@patternfly/react-icons/dist/esm/icons/cubes-icon";
import { HOME } from "utils/routeConstants";
import React from "react";
import { useNavigate } from "react-router-dom";

Expand All @@ -20,7 +21,7 @@ const EmptyPage = (props) => {
{props.text}
</Title>
<EmptyStateBody>
<Button type="primary" onClick={() => navigate("/")}>
<Button type="primary" onClick={() => navigate("/" + HOME)}>
Go to Home
</Button>
</EmptyStateBody>
Expand Down

0 comments on commit 6a764f1

Please sign in to comment.