@@ -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
2214import { useConfigurationContext } from "../root/ConfigurationContext" ;
2315import { TopToolbar } from "../layout/TopToolbar" ;
@@ -31,8 +23,6 @@ import { OnlyMineInput } from "./OnlyMineInput";
3123
3224const 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
11997export default DealList ;
0 commit comments