File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed
Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -6,13 +6,19 @@ import { TextInput } from "react-admin";
66import JobTypeRaFilter from "./JobRaTypeFilter" ;
77import { LocationRaTypeFilter } from "../location" ;
88
9- const JobRaListFilters = ( ) => {
9+ const JobRaListFilters = ( {
10+ withLocationType = true ,
11+ } : {
12+ withLocationType ?: boolean ;
13+ } ) => {
1014 return (
1115 < FilterLiveForm >
1216 < Box display = "flex" alignItems = "flex-end" >
13- < Box component = "span" mr = { 2 } sx = { { flex : "0.2" } } >
14- < LocationRaTypeFilter />
15- </ Box >
17+ { withLocationType && (
18+ < Box component = "span" mr = { 2 } sx = { { flex : "0.2" } } >
19+ < LocationRaTypeFilter />
20+ </ Box >
21+ ) }
1622
1723 < Box component = "span" mr = { 2 } sx = { { flex : "0.2" } } >
1824 < JobTypeRaFilter />
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ const JobRaListForLocation = ({
1515 resource = "jobs"
1616 actions = {
1717 < ListActions >
18- < JobRaListFilters />
18+ < JobRaListFilters withLocationType = { false } />
1919 </ ListActions >
2020 }
2121 filter = { { location_id : locationId } }
You can’t perform that action at this time.
0 commit comments