mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-02-24 19:06:37 -05:00
Always show relationship questions when connection type includes relationships
This commit is contained in:
@@ -276,9 +276,10 @@ export const OptionalLoveUserForm = (props: {
|
||||
<MultiCheckbox
|
||||
choices={RELATIONSHIP_CHOICES}
|
||||
selected={profile['pref_relation_styles']}
|
||||
onChange={(selected) =>
|
||||
onChange={(selected) => {
|
||||
setProfile('pref_relation_styles', selected)
|
||||
}
|
||||
setLookingRelationship((selected || []).includes('relationship'))
|
||||
}}
|
||||
/>
|
||||
</Col>
|
||||
|
||||
@@ -530,14 +531,14 @@ export const OptionalLoveUserForm = (props: {
|
||||
/>
|
||||
</Col>
|
||||
|
||||
<Col className={clsx(colClassName)}>
|
||||
<label className={clsx(labelClassName)}>Looking for a relationship?</label>
|
||||
<ChoicesToggleGroup
|
||||
currentChoice={lookingRelationship}
|
||||
choicesMap={{Yes: true, No: false}}
|
||||
setChoice={(c) => setLookingRelationship(c)}
|
||||
/>
|
||||
</Col>
|
||||
{/*<Col className={clsx(colClassName)}>*/}
|
||||
{/* <label className={clsx(labelClassName)}>Looking for a relationship?</label>*/}
|
||||
{/* <ChoicesToggleGroup*/}
|
||||
{/* currentChoice={lookingRelationship}*/}
|
||||
{/* choicesMap={{Yes: true, No: false}}*/}
|
||||
{/* setChoice={(c) => setLookingRelationship(c)}*/}
|
||||
{/* />*/}
|
||||
{/*</Col>*/}
|
||||
|
||||
{lookingRelationship && <>
|
||||
<Col className={clsx(colClassName)}>
|
||||
|
||||
Reference in New Issue
Block a user