-
-
- {errorTag}
-
-
-
+
+
+
+ {errorTag}
+
} />
@@ -69,9 +69,9 @@ export default function App() {
/>
-
-
-
+
+
+
);
}
diff --git a/spiffworkflow-frontend/src/components/NavigationBar.tsx b/spiffworkflow-frontend/src/components/NavigationBar.tsx
index 2f70ff0c..606a2118 100644
--- a/spiffworkflow-frontend/src/components/NavigationBar.tsx
+++ b/spiffworkflow-frontend/src/components/NavigationBar.tsx
@@ -1,72 +1,158 @@
-// @ts-ignore
-import { Button } from '@carbon/react';
-import { Navbar, Nav, Container } from 'react-bootstrap';
+import {
+ Header,
+ Theme,
+ HeaderName,
+ HeaderContainer,
+ HeaderNavigation,
+ HeaderMenuItem,
+ HeaderMenu,
+ // @ts-ignore
+} from '@carbon/react';
+import { useEffect, useState } from 'react';
+import { Navbar, Nav } from 'react-bootstrap';
+import { useLocation } from 'react-router-dom';
// @ts-expect-error TS(2307) FIXME: Cannot find module '../logo.svg' or its correspond... Remove this comment to see the full error message
import logo from '../logo.svg';
import UserService from '../services/UserService';
// for ref: https://react-bootstrap.github.io/components/navbar/
export default function NavigationBar() {
- const navElements = null;
+ // const navElements = null;
+ //
+ // const handleLogout = () => {
+ // UserService.doLogout();
+ // };
+ //
+ // const handleLogin = () => {
+ // UserService.doLogin();
+ // };
+ //
+ // const loginLink = () => {
+ // if (!UserService.isLoggedIn()) {
+ // return (
+ //