Skip to content

Commit a598eef

Browse files
committed
Remove useless breadcrumb
1 parent 2036f12 commit a598eef

File tree

1 file changed

+10
-32
lines changed

1 file changed

+10
-32
lines changed

src/atomic-crm/deals/DealList.tsx

Lines changed: 10 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,9 @@ import {
77
FilterButton,
88
SearchInput,
99
SelectInput,
10-
Breadcrumb,
11-
BreadcrumbItem,
12-
BreadcrumbPage,
1310
} from "@/components/admin";
14-
import {
15-
Translate,
16-
useGetIdentity,
17-
useListContext,
18-
useGetResourceLabel,
19-
} from "ra-core";
20-
import { Link, matchPath, useLocation } from "react-router";
11+
import { useGetIdentity, useListContext } from "ra-core";
12+
import { matchPath, useLocation } from "react-router";
2113

2214
import { useConfigurationContext } from "../root/ConfigurationContext";
2315
import { TopToolbar } from "../layout/TopToolbar";
@@ -31,8 +23,6 @@ import { OnlyMineInput } from "./OnlyMineInput";
3123

3224
const DealList = () => {
3325
const { identity } = useGetIdentity();
34-
const getResourceLabel = useGetResourceLabel();
35-
const resourceLabel = getResourceLabel("deals", 2);
3626
const { dealCategories } = useConfigurationContext();
3727

3828
if (!identity) return null;
@@ -53,23 +43,13 @@ const DealList = () => {
5343
return (
5444
<List
5545
perPage={100}
56-
filter={{
57-
"archived_at@is": null,
58-
}}
46+
filter={{ "archived_at@is": null }}
5947
title={false}
6048
sort={{ field: "index", order: "DESC" }}
6149
filters={dealFilters}
6250
actions={<DealActions />}
6351
pagination={null}
6452
>
65-
<Breadcrumb>
66-
<BreadcrumbItem>
67-
<Link to="/">
68-
<Translate i18nKey="ra.page.dashboard">Home</Translate>
69-
</Link>
70-
</BreadcrumbItem>
71-
<BreadcrumbPage>{resourceLabel}</BreadcrumbPage>
72-
</Breadcrumb>
7353
<DealLayout />
7454
</List>
7555
);
@@ -106,14 +86,12 @@ const DealLayout = () => {
10686
);
10787
};
10888

109-
const DealActions = () => {
110-
return (
111-
<TopToolbar>
112-
<FilterButton />
113-
<ExportButton />
114-
<CreateButton label="New Deal" />
115-
</TopToolbar>
116-
);
117-
};
89+
const DealActions = () => (
90+
<TopToolbar>
91+
<FilterButton />
92+
<ExportButton />
93+
<CreateButton label="New Deal" />
94+
</TopToolbar>
95+
);
11896

11997
export default DealList;

0 commit comments

Comments
 (0)