@@ -5,54 +5,10 @@ import { PiX } from 'react-icons/pi';
5
5
import { ThemeButton } from './ThemeButton' ;
6
6
import { BarClickOptions } from '@/app/find-properties/[[...opa_id]]/page' ;
7
7
import { rcos , neighborhoods , zoning } from './Filters/filterOptions' ;
8
- import DimensionFilter from './Filters/DimensionFilter' ;
9
-
10
- const filters = [
11
- {
12
- property : 'priority_level' ,
13
- display : 'Suggested Priority' ,
14
- options : [ 'Low' , 'Medium' , 'High' ] ,
15
- type : 'buttonGroup' ,
16
- } ,
17
- {
18
- property : 'get_access' ,
19
- display : 'Get Access' ,
20
- options : [
21
- 'TACTICAL_URBANISM' ,
22
- 'PRIVATE_LAND_USE' ,
23
- 'BUY_FROM_OWNER' ,
24
- 'SIDE_YARD' ,
25
- 'LAND_BANK' ,
26
- 'CONSERVATORSHIP' ,
27
- ] ,
28
- type : 'panels' ,
29
- } ,
30
- {
31
- property : 'neighborhood' ,
32
- display : 'Neighborhoods' ,
33
- options : neighborhoods ,
34
- type : 'multiSelect' ,
35
- } ,
36
- {
37
- property : 'rco_names' ,
38
- display : 'Community Organizations' ,
39
- options : rcos ,
40
- type : 'multiSelect' ,
41
- useIndexOfFilter : true ,
42
- } ,
43
- {
44
- property : 'zoning_base_district' ,
45
- display : 'Zoning' ,
46
- options : zoning ,
47
- type : 'multiSelect' ,
48
- } ,
49
- {
50
- property : 'parcel_type' ,
51
- display : 'Property Type' ,
52
- options : [ 'Land' , 'Building' ] ,
53
- type : 'buttonGroup' ,
54
- } ,
55
- ] ;
8
+ import FilterDescription from './Filters/FilterDescription' ;
9
+ import ButtonGroup from './Filters/ButtonGroup' ;
10
+ import MultiSelect from './Filters/MultiSelect' ;
11
+ import Panels from './Filters/Panels' ;
56
12
57
13
interface FilterViewProps {
58
14
updateCurrentView : ( view : BarClickOptions ) => void ;
@@ -72,9 +28,62 @@ const FilterView: FC<FilterViewProps> = ({ updateCurrentView }) => {
72
28
updateCurrentView ( 'filter' ) ;
73
29
} }
74
30
/>
75
- { filters . map ( ( attr ) => (
76
- < DimensionFilter key = { attr . property } { ...attr } />
77
- ) ) }
31
+ < div className = "pt-3 pb-6" >
32
+ < FilterDescription
33
+ title = "Suggested Priority"
34
+ description = "Find properties based on how much they can reduce gun violence considering the gun violence, cleanliness, and tree canopy nearby. "
35
+ link = "/methodology/#priority-method"
36
+ />
37
+ < ButtonGroup
38
+ property = "priority_level"
39
+ options = { [ 'Low' , 'Medium' , 'High' ] }
40
+ aria_describedby_label = "Suggested Priority"
41
+ />
42
+ </ div >
43
+ < div className = "pt-3 pb-6" >
44
+ < FilterDescription
45
+ title = "Get Access"
46
+ description = "Find properties based on what we think the easiest method to get legal access to them is, based on the data available to us."
47
+ link = "/methodology/#access-method"
48
+ />
49
+ < Panels />
50
+ </ div >
51
+ < div className = "pt-3 pb-6" >
52
+ < FilterDescription title = "Neighborhoods" />
53
+ < MultiSelect
54
+ property = "neighborhood"
55
+ options = { neighborhoods }
56
+ aria_describedby_label = "Neighborhoods"
57
+ useIndexOfFilter = { false }
58
+ />
59
+ </ div >
60
+ < div className = "pt-3 pb-6" >
61
+ < FilterDescription title = "Community Organizations" />
62
+ < MultiSelect
63
+ property = "rco_names"
64
+ options = { rcos }
65
+ aria_describedby_label = "Community_Organizations"
66
+ useIndexOfFilter = { true }
67
+ />
68
+ </ div >
69
+
70
+ < div className = "pt-3 pb-6" >
71
+ < FilterDescription title = "Zoning" />
72
+ < MultiSelect
73
+ property = "zoning_base_district"
74
+ options = { zoning }
75
+ aria_describedby_label = "Zoning"
76
+ useIndexOfFilter = { false }
77
+ />
78
+ </ div >
79
+ < div className = "pt-3 pb-6" >
80
+ < FilterDescription title = "Property Type" />
81
+ < ButtonGroup
82
+ property = "parcel_type"
83
+ options = { [ 'Land' , 'Building' ] }
84
+ aria_describedby_label = "Property_Type"
85
+ />
86
+ </ div >
78
87
</ div >
79
88
) ;
80
89
} ;
0 commit comments