feat: add breadcrumbs
This commit is contained in:
@@ -82,6 +82,12 @@ describe("AccountOperationsPage", () => {
|
||||
</QueryClientProvider>,
|
||||
);
|
||||
|
||||
expect(
|
||||
await screen.findByRole("heading", { name: "Журнал операций" }),
|
||||
).toBeInTheDocument();
|
||||
expect(
|
||||
screen.queryByRole("link", { name: "К счету" }),
|
||||
).not.toBeInTheDocument();
|
||||
fireEvent.click(await screen.findByRole("button", { name: "Далее" }));
|
||||
await waitFor(() => expect(searches.at(-1)).toContain("cursor=next-1"));
|
||||
fireEvent.click(screen.getByRole("checkbox", { name: "Налог" }));
|
||||
|
||||
@@ -10,7 +10,7 @@ import {
|
||||
} from "@mantine/core";
|
||||
import { useState } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { Link, useParams } from "react-router";
|
||||
import { useParams } from "react-router";
|
||||
import {
|
||||
type BrokerageOperation,
|
||||
type OperationCategory,
|
||||
@@ -70,12 +70,7 @@ export function AccountOperationsPage() {
|
||||
);
|
||||
return (
|
||||
<Stack maw={960} gap="lg">
|
||||
<Group justify="space-between">
|
||||
<Title order={1}>{t("ledger.title")}</Title>
|
||||
<Button component={Link} to={`/accounts/${accountId}`} variant="subtle">
|
||||
{t("ledger.back")}
|
||||
</Button>
|
||||
</Group>
|
||||
<Title order={1}>{t("ledger.title")}</Title>
|
||||
<Group align="end">
|
||||
<TextInput
|
||||
label={t("ledger.from")}
|
||||
|
||||
Reference in New Issue
Block a user