@@ -10,7 +10,7 @@ import {RelationshipFilter, RelationshipFilterText,} from './relationship-filter
1010import { MyMatchesToggle } from './my-matches-toggle'
1111import { Profile } from 'common/love/profile'
1212import { Gender } from 'common/gender'
13- import { RelationshipType } from 'web/lib/util/convert-relationship-type'
13+ import { RelationshipType , RomanticType } from 'web/lib/util/convert-relationship-type'
1414import { FilterFields } from "common/filters" ;
1515import { ShortBioToggle } from "web/components/filters/short-bio-toggle" ;
1616import { PrefGenderFilter , PrefGenderFilterText } from "./pref-gender-filter"
@@ -19,6 +19,7 @@ import {wantsKidsLabels} from "common/wants-kids";
1919import { FaChild } from "react-icons/fa"
2020import { HasKidsFilter , HasKidsLabel } from "./has-kids-filter"
2121import { hasKidsLabels } from "common/has-kids" ;
22+ import { RomanticFilter , RomanticFilterText } from "web/components/filters/romantic-filter" ;
2223
2324function MobileFilters ( props : {
2425 filters : Partial < FilterFields >
@@ -28,6 +29,7 @@ function MobileFilters(props: {
2829 setYourFilters : ( checked : boolean ) => void
2930 isYourFilters : boolean
3031 locationFilterProps : LocationFilterProps
32+ includeRelationshipFilters : boolean | undefined
3133} ) {
3234 const {
3335 filters,
@@ -37,6 +39,7 @@ function MobileFilters(props: {
3739 setYourFilters,
3840 isYourFilters,
3941 locationFilterProps,
42+ includeRelationshipFilters,
4043 } = props
4144
4245 const [ openFilter , setOpenFilter ] = useState < string | undefined > ( undefined )
@@ -60,6 +63,7 @@ function MobileFilters(props: {
6063 hidden = { ! youProfile }
6164 />
6265 </ Col >
66+
6367 { /* RELATIONSHIP STYLE */ }
6468 < MobileFilterSection
6569 title = "Seeking"
@@ -79,6 +83,7 @@ function MobileFilters(props: {
7983 >
8084 < RelationshipFilter filters = { filters } updateFilter = { updateFilter } />
8185 </ MobileFilterSection >
86+
8287 { /* LOCATION */ }
8388 < MobileFilterSection
8489 title = "Location"
@@ -103,6 +108,7 @@ function MobileFilters(props: {
103108 locationFilterProps = { locationFilterProps }
104109 />
105110 </ MobileFilterSection >
111+
106112 { /* AGE RANGE */ }
107113 < MobileFilterSection
108114 title = "Age"
@@ -122,6 +128,7 @@ function MobileFilters(props: {
122128 >
123129 < AgeFilter filters = { filters } updateFilter = { updateFilter } />
124130 </ MobileFilterSection >
131+
125132 { /* GENDER */ }
126133 < MobileFilterSection
127134 title = "Gender"
@@ -142,7 +149,7 @@ function MobileFilters(props: {
142149
143150 { /* PREFERRED GENDER */ }
144151 < MobileFilterSection
145- title = "Interested in "
152+ title = "Gender they seek "
146153 openFilter = { openFilter }
147154 setOpenFilter = { setOpenFilter }
148155 isActive = { hasAny ( filters . pref_gender ) }
@@ -158,6 +165,28 @@ function MobileFilters(props: {
158165 < PrefGenderFilter filters = { filters } updateFilter = { updateFilter } />
159166 </ MobileFilterSection >
160167
168+ { includeRelationshipFilters && < >
169+
170+ { /* ROMANTIC STYLE */ }
171+ < MobileFilterSection
172+ title = "Style"
173+ openFilter = { openFilter }
174+ setOpenFilter = { setOpenFilter }
175+ isActive = { hasAny ( filters . pref_romantic_styles || undefined ) }
176+ selection = {
177+ < RomanticFilterText
178+ relationship = { filters . pref_romantic_styles as RomanticType [ ] }
179+ highlightedClass = {
180+ hasAny ( filters . pref_romantic_styles || undefined )
181+ ? 'text-primary-600'
182+ : 'text-ink-900'
183+ }
184+ />
185+ }
186+ >
187+ < RomanticFilter filters = { filters } updateFilter = { updateFilter } />
188+ </ MobileFilterSection >
189+
161190 { /* WANTS KIDS */ }
162191 < MobileFilterSection
163192 title = "Wants kids"
@@ -206,6 +235,8 @@ function MobileFilters(props: {
206235 < HasKidsFilter filters = { filters } updateFilter = { updateFilter } />
207236 </ MobileFilterSection >
208237
238+ </ > }
239+
209240 { /* Short Bios */ }
210241 < Col className = "p-4 pb-2" >
211242 < ShortBioToggle
0 commit comments