Merge pull request #1461 from bluewave-labs/fix/sidebar
feat: adjustments to sidebar
This commit is contained in:
2 files changed
+15
-2
No files matched your search
@@ -43,6 +43,7 @@ import DotsVertical from "../../assets/icons/dots-vertical.svg?react";
|
|||||||
import ChangeLog from "../../assets/icons/changeLog.svg?react";
|
import ChangeLog from "../../assets/icons/changeLog.svg?react";
|
||||||
import Docs from "../../assets/icons/docs.svg?react";
|
import Docs from "../../assets/icons/docs.svg?react";
|
||||||
import Folder from "../../assets/icons/folder.svg?react";
|
import Folder from "../../assets/icons/folder.svg?react";
|
||||||
|
import ChatBubbleOutlineRoundedIcon from "@mui/icons-material/ChatBubbleOutlineRounded";
|
||||||
|
|
||||||
import "./index.css";
|
import "./index.css";
|
||||||
|
|
||||||
@@ -63,20 +64,31 @@ const menu = [
|
|||||||
{ name: "Team", path: "account/team", icon: <TeamSvg /> },
|
{ name: "Team", path: "account/team", icon: <TeamSvg /> },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "Settings",
|
||||||
|
icon: <Settings />,
|
||||||
|
path: "settings",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: "Other",
|
name: "Other",
|
||||||
icon: <Folder />,
|
icon: <Folder />,
|
||||||
nested: [
|
nested: [
|
||||||
{ name: "Settings", path: "settings", icon: <Settings /> },
|
|
||||||
{ name: "Support", path: "support", icon: <Support /> },
|
{ name: "Support", path: "support", icon: <Support /> },
|
||||||
|
{
|
||||||
|
name: "Discussions",
|
||||||
|
path: "discussions",
|
||||||
|
icon: <ChatBubbleOutlineRoundedIcon />,
|
||||||
|
},
|
||||||
{ name: "Docs", path: "docs", icon: <Docs /> },
|
{ name: "Docs", path: "docs", icon: <Docs /> },
|
||||||
{ name: "Changelog", path: "changelog", icon: <ChangeLog /> },
|
{ name: "Changelog", path: "changelog", icon: <ChangeLog /> },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
/* TODO this could be a key in nested Path would be the link */
|
||||||
const URL_MAP = {
|
const URL_MAP = {
|
||||||
support: "https://github.com/bluewave-labs/bluewave-uptime/issues",
|
support: "https://discord.com/invite/NAb6H3UTjK",
|
||||||
|
discussions: "https://github.com/bluewave-labs/checkmate/discussions",
|
||||||
docs: "https://bluewavelabs.gitbook.io/checkmate",
|
docs: "https://bluewavelabs.gitbook.io/checkmate",
|
||||||
changelog: "https://github.com/bluewave-labs/bluewave-uptime/releases",
|
changelog: "https://github.com/bluewave-labs/bluewave-uptime/releases",
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -329,6 +329,7 @@ MonitorTable.propTypes = {
|
|||||||
setIsSearching: PropTypes.func,
|
setIsSearching: PropTypes.func,
|
||||||
isSearching: PropTypes.bool,
|
isSearching: PropTypes.bool,
|
||||||
setMonitorUpdateTrigger: PropTypes.func,
|
setMonitorUpdateTrigger: PropTypes.func,
|
||||||
|
handlePause: PropTypes.func,
|
||||||
};
|
};
|
||||||
|
|
||||||
const MemoizedMonitorTable = memo(MonitorTable);
|
const MemoizedMonitorTable = memo(MonitorTable);
|
||||||
|
|||||||
Reference in new issue
Block a user