Reorganize app pages (#73)

* Update layout and menus

* Add breadcrumbs
Add menu icons
Add ECU drop down

* Implement submenu
Update download progress

* revamped dashboard section - failing app.test.js

* Clean up

Co-authored-by: Drew Taylor <dtaylor@fiskerinc.com>
This commit is contained in:
John Wu
2021-08-10 08:11:06 -07:00
committed by GitHub
parent 0545b54daf
commit e50eb886e6
39 changed files with 4043 additions and 3623 deletions

View File

@@ -39,7 +39,7 @@ const MainForm = () => {
startMonitor,
stopMonitor,
} = useCarUpdatesContext();
const { setMessage, setTitle } = useStatusContext();
const { setMessage, setTitle, setSitePath } = useStatusContext();
const {
token: {
idToken: { jwtToken: token },
@@ -60,7 +60,18 @@ const MainForm = () => {
useEffect(() => {
if (!manifests || manifests.length === 0) return;
setTitle(`Manifest ${manifests[0].name} ${manifests[0].version}`);
const title = `Manifest ${manifests[0].name} ${manifests[0].version}`;
setTitle(title);
setSitePath([
{
label: "Deployments",
link: "/packages",
},
{
label: title,
},
]);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [manifests]);