diff --git a/web/components/filters/choices.tsx b/web/components/filters/choices.tsx index 6aa3b7f6..6810e3cf 100644 --- a/web/components/filters/choices.tsx +++ b/web/components/filters/choices.tsx @@ -11,10 +11,30 @@ export const ROMANTIC_CHOICES = { 'Open Relationship': 'open', }; +export const POLITICAL_CHOICES = { + Progressive: 'progressive', + Liberal: 'liberal', + 'Moderate / Centrist': 'moderate', + Conservative: 'conservative', + Socialist: 'socialist', + Nationalist: 'nationalist', + Populist: 'populist', + 'Green / Eco-Socialist': 'green', + Technocratic: 'technocratic', + Libertarian: 'libertarian', + 'Effective Accelerationism': 'e/acc', + 'Pause AI / Tech Skeptic': 'pause ai', + 'Independent / Other': 'other', +} + export const REVERTED_RELATIONSHIP_CHOICES = Object.fromEntries( Object.entries(RELATIONSHIP_CHOICES).map(([key, value]) => [value, key]) ); export const REVERTED_ROMANTIC_CHOICES = Object.fromEntries( Object.entries(ROMANTIC_CHOICES).map(([key, value]) => [value, key]) +); + +export const REVERTED_POLITICAL_CHOICES = Object.fromEntries( + Object.entries(POLITICAL_CHOICES).map(([key, value]) => [value, key]) ); \ No newline at end of file diff --git a/web/components/optional-profile-form.tsx b/web/components/optional-profile-form.tsx index 8f33aec0..93abadb2 100644 --- a/web/components/optional-profile-form.tsx +++ b/web/components/optional-profile-form.tsx @@ -28,7 +28,7 @@ import {City, CityRow, profileToCity, useCitySearch} from "web/components/search import {AddPhotosWidget} from './widgets/add-photos' import {RadioToggleGroup} from "web/components/widgets/radio-toggle-group"; import {MultipleChoiceOptions} from "common/love/multiple-choice"; -import {RELATIONSHIP_CHOICES, ROMANTIC_CHOICES} from "web/components/filters/choices"; +import {POLITICAL_CHOICES, RELATIONSHIP_CHOICES, ROMANTIC_CHOICES} from "web/components/filters/choices"; import toast from "react-hot-toast"; export const OptionalLoveUserForm = (props: { @@ -393,21 +393,7 @@ export const OptionalLoveUserForm = (props: {