feat: add breadcrumbs

This commit is contained in:
2026-08-14 14:26:25 +03:00
parent 4f3ee7ddb2
commit 719a6ed8b7
8 changed files with 228 additions and 9 deletions
+7
View File
@@ -2,6 +2,13 @@ export const ru = {
translation: {
appName: "WealthLedger",
navigation: { accounts: "Счета", settings: "Настройки" },
breadcrumbs: {
label: "Хлебные крошки",
accounts: "Брокерские счета",
accountFallback: "Счет",
operations: "Операции",
settings: "Настройки",
},
auth: {
login: "Вход",
register: "Регистрация",
+7 -1
View File
@@ -1,8 +1,13 @@
import { AppShell as MantineAppShell, NavLink, Text } from "@mantine/core";
import type { ReactNode } from "react";
import { useTranslation } from "react-i18next";
import { Outlet, NavLink as RouterNavLink, useLocation } from "react-router";
export function AppShell() {
export function AppShell({
contentAboveOutlet,
}: {
contentAboveOutlet?: ReactNode;
}) {
const { t } = useTranslation();
const { pathname } = useLocation();
const items = [
@@ -31,6 +36,7 @@ export function AppShell() {
))}
</MantineAppShell.Navbar>
<MantineAppShell.Main>
{contentAboveOutlet}
<Outlet />
</MantineAppShell.Main>
<nav className="bottom-nav" aria-label={t("appName")}>