Merge pull request #1226 from bluewave-labs/feat/fe/sidebar-restructure
feat: fe sidebar restructure
This commit is contained in:
2 files changed
+4
-12
No files matched your search
@@ -47,15 +47,9 @@ import Folder from "../../assets/icons/folder.svg?react";
|
|||||||
import "./index.css";
|
import "./index.css";
|
||||||
|
|
||||||
const menu = [
|
const menu = [
|
||||||
{
|
{ name: "Monitors", path: "monitors", icon: <Monitors /> },
|
||||||
name: "Dashboard",
|
{ name: "Pagespeed", path: "pagespeed", icon: <PageSpeed /> },
|
||||||
icon: <Dashboard />,
|
{ name: "Infrastructure", path: "infrastructure", icon: <Integrations /> },
|
||||||
nested: [
|
|
||||||
{ name: "Monitors", path: "monitors", icon: <Monitors /> },
|
|
||||||
{ name: "Pagespeed", path: "pagespeed", icon: <PageSpeed /> },
|
|
||||||
{ name: "Infrastructure", path: "infrastructure", icon: <Integrations /> },
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{ name: "Incidents", path: "incidents", icon: <Incidents /> },
|
{ name: "Incidents", path: "incidents", icon: <Incidents /> },
|
||||||
// { name: "Status pages", path: "status", icon: <StatusPages /> },
|
// { name: "Status pages", path: "status", icon: <StatusPages /> },
|
||||||
{ name: "Maintenance", path: "maintenance", icon: <Maintenance /> },
|
{ name: "Maintenance", path: "maintenance", icon: <Maintenance /> },
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ import "./index.css";
|
|||||||
import { useNavigate } from "react-router";
|
import { useNavigate } from "react-router";
|
||||||
import PropTypes from "prop-types";
|
import PropTypes from "prop-types";
|
||||||
import Breadcrumbs from "../../Components/Breadcrumbs";
|
import Breadcrumbs from "../../Components/Breadcrumbs";
|
||||||
import Greeting from "../../Utils/greeting";
|
|
||||||
import SkeletonLayout from "./skeleton";
|
import SkeletonLayout from "./skeleton";
|
||||||
import Card from "./card";
|
import Card from "./card";
|
||||||
import { networkService } from "../../main";
|
import { networkService } from "../../main";
|
||||||
@@ -82,11 +81,10 @@ const PageSpeed = ({ isAdmin }) => {
|
|||||||
<Breadcrumbs list={[{ name: `pagespeed`, path: "/pagespeed" }]} />
|
<Breadcrumbs list={[{ name: `pagespeed`, path: "/pagespeed" }]} />
|
||||||
<Stack
|
<Stack
|
||||||
direction="row"
|
direction="row"
|
||||||
justifyContent="space-between"
|
justifyContent="end"
|
||||||
alignItems="center"
|
alignItems="center"
|
||||||
mt={theme.spacing(5)}
|
mt={theme.spacing(5)}
|
||||||
>
|
>
|
||||||
<Greeting type="pagespeed" />
|
|
||||||
{isAdmin && (
|
{isAdmin && (
|
||||||
<Button
|
<Button
|
||||||
variant="contained"
|
variant="contained"
|
||||||
|
|||||||
Reference in new issue
Block a user