Skip to content

Commit 5d1607e

Browse files
committed
added link to github
1 parent 88fd893 commit 5d1607e

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

ui/web-app/src/App.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import Router, { Route, Switch, usePath } from "crossroad";
2-
import { lazy, Suspense } from "react";
2+
import { lazy, ReactNode, Suspense } from "react";
33
import { Container, Nav, Navbar } from "react-bootstrap";
44
import { LoadingView } from "spring-persistent-tasks-ui";
5+
import * as Icon from "react-bootstrap-icons";
56

67
const SchedulersPage = lazy(() => import("./scheduler/scheduler.page"));
78
const TriggersPage = lazy(() => import("./trigger/triggers.page"));
@@ -26,6 +27,12 @@ const App = () => {
2627
{routes.map((i) => (
2728
<MenuLink key={"link-" + i.path} item={i} />
2829
))}
30+
<Nav.Link
31+
href="https://github.com/sterlp/spring-persistent-tasks"
32+
target="_blank"
33+
>
34+
<Icon.Github />
35+
</Nav.Link>
2936
</Nav>
3037
</Navbar.Collapse>
3138
</Container>
@@ -49,7 +56,7 @@ const App = () => {
4956
};
5057

5158
interface MenuItem {
52-
label: string;
59+
label: string | ReactNode;
5360
path: string;
5461
component: React.FunctionComponent;
5562
}

0 commit comments

Comments
 (0)