@@ -463,55 +463,6 @@ export const OptionalProfileUserForm = (props: {
463463 </ Col >
464464 </ Row >
465465
466- < Row className = { 'items-center gap-2' } >
467- < Col className = { 'gap-1' } >
468- < label className = { clsx ( labelClassName ) } >
469- { t ( 'profile.optional.orientation' , 'Sexual orientation' ) }
470- </ label >
471- < MultiCheckbox
472- choices = {
473- Object . fromEntries (
474- Object . entries ( ORIENTATION_CHOICES ) . filter (
475- ( [ , v ] ) =>
476- showAllOrientations ||
477- DEFAULT_ORIENTATIONS . includes ( v as any ) ||
478- ( profile [ 'orientation' ] ?? [ ] ) . includes ( v ) ,
479- ) ,
480- ) as any
481- }
482- selected = { profile [ 'orientation' ] ?? [ ] }
483- translationPrefix = { 'profile.orientation' }
484- onChange = { ( selected ) => setProfile ( 'orientation' , selected ) }
485- />
486- { ! showAllOrientations && (
487- < button
488- type = "button"
489- className = "text-primary-600 mt-1 text-sm"
490- onClick = { ( ) => setShowAllOrientations ( true ) }
491- >
492- { t ( 'profile.orientation.show_more' , 'Show more options' ) }
493- </ button >
494- ) }
495- { showAllOrientations && (
496- < >
497- < p className = "mt-1" > { t ( 'profile.optional.details' , 'Details' ) } </ p >
498- < Input
499- type = "text"
500- onChange = { ( e : React . ChangeEvent < HTMLInputElement > ) =>
501- setProfile ( 'orientation_details' , e . target . value )
502- }
503- className = { 'w-full sm:w-[700px]' }
504- value = { ( profile as any ) [ 'orientation_details' ] ?? undefined }
505- placeholder = { t (
506- 'profile.orientation.details_placeholder' ,
507- 'Any details about your sexual orientation…' ,
508- ) }
509- />
510- </ >
511- ) }
512- </ Col >
513- </ Row >
514-
515466 < Col className = { clsx ( colClassName ) } >
516467 < label className = { clsx ( labelClassName ) } > { t ( 'profile.optional.age' , 'Age' ) } </ label >
517468 < Input
@@ -799,6 +750,55 @@ export const OptionalProfileUserForm = (props: {
799750
800751 { lookingRelationship && (
801752 < >
753+ < Row className = { 'items-center gap-2' } >
754+ < Col className = { 'gap-1' } >
755+ < label className = { clsx ( labelClassName ) } >
756+ { t ( 'profile.optional.orientation' , 'Orientation' ) }
757+ </ label >
758+ < MultiCheckbox
759+ choices = {
760+ Object . fromEntries (
761+ Object . entries ( ORIENTATION_CHOICES ) . filter (
762+ ( [ , v ] ) =>
763+ showAllOrientations ||
764+ DEFAULT_ORIENTATIONS . includes ( v as any ) ||
765+ ( profile [ 'orientation' ] ?? [ ] ) . includes ( v ) ,
766+ ) ,
767+ ) as any
768+ }
769+ selected = { profile [ 'orientation' ] ?? [ ] }
770+ translationPrefix = { 'profile.orientation' }
771+ onChange = { ( selected ) => setProfile ( 'orientation' , selected ) }
772+ />
773+ { ! showAllOrientations && (
774+ < button
775+ type = "button"
776+ className = "text-primary-600 mt-1 text-sm"
777+ onClick = { ( ) => setShowAllOrientations ( true ) }
778+ >
779+ { t ( 'profile.orientation.show_more' , 'Show more options' ) }
780+ </ button >
781+ ) }
782+ { showAllOrientations && (
783+ < >
784+ < p className = "mt-1" > { t ( 'profile.optional.details' , 'Details' ) } </ p >
785+ < Input
786+ type = "text"
787+ onChange = { ( e : React . ChangeEvent < HTMLInputElement > ) =>
788+ setProfile ( 'orientation_details' , e . target . value )
789+ }
790+ className = { 'w-full sm:w-[700px]' }
791+ value = { ( profile as any ) [ 'orientation_details' ] ?? undefined }
792+ placeholder = { t (
793+ 'profile.orientation.details_placeholder' ,
794+ 'Any details about your sexual orientation…' ,
795+ ) }
796+ />
797+ </ >
798+ ) }
799+ </ Col >
800+ </ Row >
801+
802802 < Col className = { clsx ( colClassName ) } >
803803 < label className = { clsx ( labelClassName ) } >
804804 { t ( 'profile.optional.relationship_style' , 'Relationship style' ) }
0 commit comments