File tree Expand file tree Collapse file tree 6 files changed +16
-0
lines changed
Expand file tree Collapse file tree 6 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ export const sinclairProfile: ProfileRow = {
5151 political_beliefs : [ 'e/acc' , 'libertarian' ] ,
5252 religious_belief_strength : null ,
5353 religious_beliefs : null ,
54+ political_details : '' ,
5455 photo_urls : [
5556 'https://firebasestorage.googleapis.com/v0/b/mantic-markets.appspot.com/o/user-images%2FSinclair%2Flove-images%2FnJz22lr3Bl.jpg?alt=media&token=f1e99ba3-39cc-4637-8702-16a3a8dd49db' ,
5657 'https://firebasestorage.googleapis.com/v0/b/mantic-markets.appspot.com/o/user-images%2FSinclair%2Flove-images%2FygM0mGgP_j.HEIC?alt=media&token=573b23d9-693c-4d6e-919b-097309f370e1' ,
@@ -153,6 +154,7 @@ export const jamesProfile: ProfileRow = {
153154 political_beliefs : [ 'libertarian' ] ,
154155 religious_belief_strength : null ,
155156 religious_beliefs : '' ,
157+ political_details : '' ,
156158 photo_urls : [
157159 'https://firebasestorage.googleapis.com/v0/b/mantic-markets.appspot.com/o/user-images%2FJamesGrugett%2Flove-images%2FKl0WtbZsZW.jpg?alt=media&token=c928604f-e5ff-4406-a229-152864a4aa48' ,
158160 'https://firebasestorage.googleapis.com/v0/b/mantic-markets.appspot.com/o/user-images%2FJamesGrugett%2Flove-images%2Fsii17zOItz.jpg?alt=media&token=474034b9-0d23-4005-97ad-5864abfd85fe' ,
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ CREATE TABLE IF NOT EXISTS profiles (
3535 occupation_title TEXT ,
3636 photo_urls TEXT [],
3737 pinned_url TEXT ,
38+ political_details TEXT ,
3839 political_beliefs TEXT [],
3940 pref_age_max INTEGER NULL ,
4041 pref_age_min INTEGER NULL ,
Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ const optionalProfilesSchema = z.object({
7777 political_beliefs : z . array ( z . string ( ) ) . optional ( ) ,
7878 religious_belief_strength : z . number ( ) . optional ( ) ,
7979 religious_beliefs : z . string ( ) . optional ( ) ,
80+ political_details : z . string ( ) . optional ( ) ,
8081 religion : z . array ( z . string ( ) ) . optional ( ) ,
8182 ethnicity : z . array ( z . string ( ) ) . optional ( ) ,
8283 born_in_location : z . string ( ) . optional ( ) ,
Original file line number Diff line number Diff line change @@ -558,6 +558,7 @@ export type Database = {
558558 photo_urls : string [ ] | null
559559 pinned_url : string | null
560560 political_beliefs : string [ ] | null
561+ political_details : string | null
561562 pref_age_max : number | null
562563 pref_age_min : number | null
563564 pref_gender : string [ ]
@@ -607,6 +608,7 @@ export type Database = {
607608 photo_urls ?: string [ ] | null
608609 pinned_url ?: string | null
609610 political_beliefs ?: string [ ] | null
611+ political_details ?: string | null
610612 pref_age_max ?: number | null
611613 pref_age_min ?: number | null
612614 pref_gender : string [ ]
@@ -656,6 +658,7 @@ export type Database = {
656658 photo_urls ?: string [ ] | null
657659 pinned_url ?: string | null
658660 political_beliefs ?: string [ ] | null
661+ political_details ?: string | null
659662 pref_age_max ?: number | null
660663 pref_age_min ?: number | null
661664 pref_gender ?: string [ ]
Original file line number Diff line number Diff line change @@ -403,6 +403,13 @@ export const OptionalProfileUserForm = (props: {
403403 selected = { profile [ 'political_beliefs' ] ?? [ ] }
404404 onChange = { ( selected ) => setProfile ( 'political_beliefs' , selected ) }
405405 />
406+ < p > Details:</ p >
407+ < Input
408+ type = "text"
409+ onChange = { ( e ) => setProfile ( 'political_details' , e . target . value ) }
410+ className = { 'w-full sm:w-96' }
411+ value = { profile [ 'political_details' ] ?? undefined }
412+ />
406413 </ Col >
407414
408415 < Col className = { clsx ( colClassName ) } >
@@ -412,6 +419,7 @@ export const OptionalProfileUserForm = (props: {
412419 selected = { profile [ 'religion' ] ?? [ ] }
413420 onChange = { ( selected ) => setProfile ( 'religion' , selected ) }
414421 />
422+ < p > Details:</ p >
415423 < Input
416424 type = "text"
417425 onChange = { ( e ) => setProfile ( 'religious_beliefs' , e . target . value ) }
Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ export default function ProfileAbout(props: {
7979 < AboutRow
8080 icon = { < RiScales3Line className = "h-5 w-5" /> }
8181 text = { profile . political_beliefs ?. map ( belief => REVERTED_POLITICAL_CHOICES [ belief ] ) }
82+ suffix = { profile . political_details }
8283 />
8384 < AboutRow
8485 icon = { < PiHandsPrayingBold className = "h-5 w-5" /> }
You can’t perform that action at this time.
0 commit comments