@@ -28,7 +28,7 @@ import {City, CityRow, profileToCity, useCitySearch} from "web/components/search
2828import { AddPhotosWidget } from './widgets/add-photos'
2929import { RadioToggleGroup } from "web/components/widgets/radio-toggle-group" ;
3030import { MultipleChoiceOptions } from "common/love/multiple-choice" ;
31- import { RELATIONSHIP_CHOICES } from "web/components/filters/choices" ;
31+ import { RELATIONSHIP_CHOICES , ROMANTIC_CHOICES } from "web/components/filters/choices" ;
3232import toast from "react-hot-toast" ;
3333
3434export const OptionalLoveUserForm = ( props : {
@@ -42,7 +42,7 @@ export const OptionalLoveUserForm = (props: {
4242 const { profile, user, buttonLabel, setProfile, fromSignup, onSubmit} = props
4343
4444 const [ isSubmitting , setIsSubmitting ] = useState ( false )
45- const [ lookingRelationship , setLookingRelationship ] = useState ( false )
45+ const [ lookingRelationship , setLookingRelationship ] = useState ( ( profile . pref_relation_styles || [ ] ) . includes ( 'relationship' ) )
4646 const router = useRouter ( )
4747 const [ heightFeet , setHeightFeet ] = useState < number | undefined > (
4848 profile . height_in_inches
@@ -554,6 +554,17 @@ export const OptionalLoveUserForm = (props: {
554554 currentChoice = { profile . wants_kids_strength ?? - 1 }
555555 />
556556 </ Col >
557+
558+ < Col className = { clsx ( colClassName ) } >
559+ < label className = { clsx ( labelClassName ) } > Relationship style</ label >
560+ < MultiCheckbox
561+ choices = { ROMANTIC_CHOICES }
562+ selected = { profile [ 'pref_romantic_styles' ] || [ ] }
563+ onChange = { ( selected ) => {
564+ setProfile ( 'pref_romantic_styles' , selected )
565+ } }
566+ />
567+ </ Col >
557568 </ > }
558569
559570 < Col className = { clsx ( colClassName ) } >
0 commit comments