diff --git a/src/components/layout/Navigation/NavLink.ts b/src/components/layout/Navigation/NavLink.ts index a6884f15..d24c250d 100644 --- a/src/components/layout/Navigation/NavLink.ts +++ b/src/components/layout/Navigation/NavLink.ts @@ -1,6 +1,7 @@ import { - BuildSharp as IconTxBuilder, + BuildSharp as IconSettings, HomeRounded, + Layers as IconTxBuilder, SvgIconComponent, } from "@mui/icons-material"; @@ -18,6 +19,7 @@ export type NavLink = { const icons = { HomeRounded, IconTxBuilder, + IconSettings, }; export const MENU_ITEMS: NavLink[] = [ @@ -30,11 +32,19 @@ export const MENU_ITEMS: NavLink[] = [ target: true, }, { - id: "docs", + id: "tx-builder", title: "Tx Builder", type: "item", url: ROUTES.TxBuilder, icon: icons.IconTxBuilder, target: true, }, + { + id: "settings", + title: "Settings", + type: "item", + url: ROUTES.Settings, + icon: icons.IconSettings, + target: true, + }, ]; diff --git a/src/config/routes.ts b/src/config/routes.ts index 860e3f85..87c4b7e5 100644 --- a/src/config/routes.ts +++ b/src/config/routes.ts @@ -6,6 +6,7 @@ export const ROUTES = { Connect: "/connect", App: "/app", TxBuilder: "/app/transaction-builder", + Settings: "/app/settings", } as const; export type RouteValue = (typeof ROUTES)[keyof typeof ROUTES]; diff --git a/src/pages/app/index.tsx b/src/pages/app/index.tsx index 0579c2e2..0faed6dd 100644 --- a/src/pages/app/index.tsx +++ b/src/pages/app/index.tsx @@ -1,9 +1,11 @@ import { Grid, Typography } from "@mui/material"; +import Link from "next/link"; import { AddressBookWidget } from "@/components/AddressBookWidget"; import { SummaryCard } from "@/components/SummaryCard"; import { XsignerBalanceText } from "@/components/SummaryCard/XsignerBalanceText"; import { TransactionQueueWidget } from "@/components/TransactionQueueWidget"; +import { ROUTES } from "@/config/routes"; import { useGetBalance } from "@/hooks/useGetBalance"; import { useGetXsignerSelected } from "@/hooks/xsignerSelected/useGetXsignerSelected"; @@ -34,7 +36,13 @@ export default function AppDashboard() { - + + + Settings; +}