11import { ChevronDownIcon , ChevronUpIcon } from '@heroicons/react/outline'
2- import { RelationshipType , RomanticType } from 'web/lib/util/convert-relationship-type '
2+ import { DietType , RelationshipType , RomanticType } from 'web/lib/util/convert-types '
33import { ReactNode } from 'react'
44import { FaUserGroup } from 'react-icons/fa6'
55import { Col } from 'web/components/layout/col'
@@ -21,6 +21,7 @@ import {hasKidsLabels} from "common/has-kids";
2121import { HasKidsLabel } from "web/components/filters/has-kids-filter" ;
2222import { RomanticFilter , RomanticFilterText } from "web/components/filters/romantic-filter" ;
2323import { FaHeart } from "react-icons/fa" ;
24+ import { DietFilter , DietFilterText } from "web/components/filters/diet-filter" ;
2425
2526export function DesktopFilters ( props : {
2627 filters : Partial < FilterFields >
@@ -171,7 +172,7 @@ export function DesktopFilters(props: {
171172
172173 { includeRelationshipFilters && < >
173174
174- { /* CONNECTION */ }
175+ { /* RELATIONSHIP STYLE */ }
175176 < CustomizeableDropdown
176177 buttonContent = { ( open ) => (
177178 < DropdownButton
@@ -291,6 +292,32 @@ export function DesktopFilters(props: {
291292 </ >
292293 }
293294
295+ { /* DIET */ }
296+ < CustomizeableDropdown
297+ buttonContent = { ( open ) => (
298+ < DropdownButton
299+ open = { open }
300+ content = {
301+ < Row className = "items-center gap-1" >
302+ < DietFilterText
303+ options = {
304+ filters . diet as
305+ | DietType [ ]
306+ | undefined
307+ }
308+ highlightedClass = { open ? 'text-primary-500' : undefined }
309+ />
310+ </ Row >
311+ }
312+ />
313+ ) }
314+ dropdownMenuContent = {
315+ < DietFilter filters = { filters } updateFilter = { updateFilter } />
316+ }
317+ popoverClassName = "bg-canvas-50"
318+ menuWidth = "w-50"
319+ />
320+
294321 { /* Short Bios */ }
295322 < ShortBioToggle
296323 updateFilter = { updateFilter }
0 commit comments