mirror of
https://github.com/CompassConnections/Compass.git
synced 2025-12-23 22:18:43 -05:00
Rename love folder
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { groupBy, sortBy } from 'lodash'
|
||||
import { APIError, type APIHandler } from 'api/helpers/endpoint'
|
||||
import { getCompatibilityScore } from 'common/love/compatibility-score'
|
||||
import { getCompatibilityScore } from 'common/profiles/compatibility-score'
|
||||
import {
|
||||
getProfile,
|
||||
getCompatibilityAnswers,
|
||||
|
||||
@@ -3,7 +3,7 @@ import {from, renderSql, select} from "shared/supabase/sql-builder";
|
||||
import {loadProfiles, profileQueryType} from "api/get-profiles";
|
||||
import {Row} from "common/supabase/utils";
|
||||
import {sendSearchAlertsEmail} from "email/functions/helpers";
|
||||
import {MatchesByUserType} from "common/love/bookmarked_searches";
|
||||
import {MatchesByUserType} from "common/profiles/bookmarked_searches";
|
||||
import {keyBy} from "lodash";
|
||||
|
||||
export function convertSearchRow(row: any): any {
|
||||
|
||||
@@ -6,7 +6,7 @@ import {NewEndorsementEmail} from '../new-endorsement'
|
||||
import {Test} from '../test'
|
||||
import {getProfile} from 'shared/love/supabase'
|
||||
import { render } from "@react-email/render"
|
||||
import {MatchesType} from "common/love/bookmarked_searches";
|
||||
import {MatchesType} from "common/profiles/bookmarked_searches";
|
||||
import NewSearchAlertsEmail from "email/new-search_alerts";
|
||||
import WelcomeEmail from "email/welcome";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {ProfileRow} from 'common/love/profile'
|
||||
import {ProfileRow} from 'common/profiles/profile'
|
||||
import type {User} from 'common/user'
|
||||
|
||||
// for email template testing
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import {Body, Button, Container, Head, Html, Preview, Section, Text,} from '@react-email/components'
|
||||
import {DOMAIN} from 'common/envs/constants'
|
||||
import {type ProfileRow} from 'common/love/profile'
|
||||
import {type ProfileRow} from 'common/profiles/profile'
|
||||
import {type User} from 'common/user'
|
||||
import {jamesProfile, jamesUser, mockUser} from './functions/mock'
|
||||
import {Footer} from "email/utils";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import {Body, Button, Container, Head, Html, Preview, Section, Text,} from '@react-email/components'
|
||||
import {type User} from 'common/user'
|
||||
import {type ProfileRow} from 'common/love/profile'
|
||||
import {type ProfileRow} from 'common/profiles/profile'
|
||||
import {jamesProfile, jamesUser, mockUser,} from './functions/mock'
|
||||
import {DOMAIN} from 'common/envs/constants'
|
||||
import {button, container, content, Footer, imageContainer, main, paragraph} from "email/utils";
|
||||
|
||||
@@ -3,7 +3,7 @@ import {type User} from 'common/user'
|
||||
import {mockUser,} from './functions/mock'
|
||||
import {DOMAIN} from 'common/envs/constants'
|
||||
import {container, content, Footer, main, paragraph} from "email/utils";
|
||||
import {MatchesType} from "common/love/bookmarked_searches";
|
||||
import {MatchesType} from "common/profiles/bookmarked_searches";
|
||||
import {formatFilters, locationType} from "common/searches"
|
||||
import {FilterFields} from "common/filters";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { areGenderCompatible } from 'common/love/compatibility-util'
|
||||
import { type Profile, type ProfileRow } from 'common/love/profile'
|
||||
import { areGenderCompatible } from 'common/profiles/compatibility-util'
|
||||
import { type Profile, type ProfileRow } from 'common/profiles/profile'
|
||||
import { type User } from 'common/user'
|
||||
import { Row } from 'common/supabase/utils'
|
||||
import { createSupabaseDirectClient } from 'shared/supabase/init'
|
||||
|
||||
@@ -5,9 +5,9 @@ import {
|
||||
arraybeSchema,
|
||||
} from 'common/api/zod-types'
|
||||
import {PrivateChatMessage} from 'common/chat-message'
|
||||
import {CompatibilityScore} from 'common/love/compatibility-score'
|
||||
import {MAX_COMPATIBILITY_QUESTION_LENGTH} from 'common/love/constants'
|
||||
import {Profile, ProfileRow} from 'common/love/profile'
|
||||
import {CompatibilityScore} from 'common/profiles/compatibility-score'
|
||||
import {MAX_COMPATIBILITY_QUESTION_LENGTH} from 'common/profiles/constants'
|
||||
import {Profile, ProfileRow} from 'common/profiles/profile'
|
||||
import {Row} from 'common/supabase/utils'
|
||||
import {PrivateUser, User} from 'common/user'
|
||||
import {z} from 'zod'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {Profile, ProfileRow} from "common/love/profile";
|
||||
import {Profile, ProfileRow} from "common/profiles/profile";
|
||||
import {cloneDeep} from "lodash";
|
||||
import {filterDefined} from "common/util/array";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { keyBy, sumBy } from 'lodash'
|
||||
import { ProfileRow } from 'common/love/profile'
|
||||
import { ProfileRow } from 'common/profiles/profile'
|
||||
import { Row as rowFor } from 'common/supabase/utils'
|
||||
import {
|
||||
areAgeCompatible,
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ProfileRow } from 'common/love/profile'
|
||||
import { ProfileRow } from 'common/profiles/profile'
|
||||
import {MAX_INT, MIN_INT} from "common/constants";
|
||||
|
||||
const isPreferredGender = (
|
||||
@@ -1,5 +1,5 @@
|
||||
import { User } from 'common/user'
|
||||
import { ProfileRow } from 'common/love/profile'
|
||||
import { ProfileRow } from 'common/profiles/profile'
|
||||
import { buildOgUrl } from 'common/util/og'
|
||||
|
||||
// TODO: handle age, gender undefined better
|
||||
@@ -16,7 +16,7 @@ import { Row as rowFor } from 'common/supabase/utils'
|
||||
import { AnswerCompatibilityQuestionContent } from './answer-compatibility-question-content'
|
||||
import { uniq } from 'lodash'
|
||||
import { QuestionWithCountType } from 'web/hooks/use-questions'
|
||||
import { MAX_COMPATIBILITY_QUESTION_LENGTH } from 'common/love/constants'
|
||||
import { MAX_COMPATIBILITY_QUESTION_LENGTH } from 'common/profiles/constants'
|
||||
|
||||
export function AddCompatibilityQuestionButton(props: {
|
||||
refreshCompatibilityAll: () => void
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import {PencilIcon, TrashIcon} from '@heroicons/react/outline'
|
||||
import {getAnswerCompatibility, getScoredAnswerCompatibility,} from 'common/love/compatibility-score'
|
||||
import {Profile} from 'common/love/profile'
|
||||
import {getAnswerCompatibility, getScoredAnswerCompatibility,} from 'common/profiles/compatibility-score'
|
||||
import {Profile} from 'common/profiles/profile'
|
||||
import {Row as rowFor} from 'common/supabase/utils'
|
||||
import {User} from 'common/user'
|
||||
import {keyBy, partition, sortBy} from 'lodash'
|
||||
|
||||
@@ -26,7 +26,7 @@ import {
|
||||
import { partition } from 'lodash'
|
||||
import { shortenName } from 'web/components/widgets/user-link'
|
||||
import { AddQuestionButton } from './free-response-add-question'
|
||||
import { Profile } from 'common/love/profile'
|
||||
import { Profile } from 'common/profiles/profile'
|
||||
|
||||
export function FreeResponseDisplay(props: {
|
||||
isCurrentUser: boolean
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import {User} from 'common/user'
|
||||
import {Col} from 'web/components/layout/col'
|
||||
import {CompatibilityQuestionsDisplay} from './compatibility-questions-display'
|
||||
import {Profile} from 'common/love/profile'
|
||||
import {Profile} from 'common/profiles/profile'
|
||||
|
||||
export function ProfileAnswers(props: {
|
||||
isCurrentUser: boolean
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import {Editor} from '@tiptap/core'
|
||||
import {MAX_DESCRIPTION_LENGTH} from 'common/envs/constants'
|
||||
import {Profile} from 'common/love/profile'
|
||||
import {Profile} from 'common/profiles/profile'
|
||||
import {tryCatch} from 'common/util/try-catch'
|
||||
import {Button} from 'web/components/buttons/button'
|
||||
import {Col} from 'web/components/layout/col'
|
||||
|
||||
@@ -2,7 +2,7 @@ import { PencilIcon, XIcon } from '@heroicons/react/outline'
|
||||
import { JSONContent } from '@tiptap/core'
|
||||
import clsx from 'clsx'
|
||||
|
||||
import { Profile } from 'common/love/profile'
|
||||
import { Profile } from 'common/profiles/profile'
|
||||
import DropdownMenu from 'web/components/comments/dropdown-menu'
|
||||
import { Col } from 'web/components/layout/col'
|
||||
import { Row } from 'web/components/layout/row'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {Profile} from 'common/love/profile'
|
||||
import {Profile} from 'common/profiles/profile'
|
||||
import {useEffect, useState} from 'react'
|
||||
import {Col} from 'web/components/layout/col'
|
||||
import {Subtitle} from '../widgets/profile-subtitle'
|
||||
|
||||
@@ -13,7 +13,7 @@ import { UserAvatarAndBadge } from 'web/components/widgets/user-link'
|
||||
import Link from 'next/link'
|
||||
import DropdownMenu from 'web/components/comments/dropdown-menu'
|
||||
import { DotsHorizontalIcon, ReplyIcon } from '@heroicons/react/solid'
|
||||
import { manifoldLoveUserId } from 'common/love/constants'
|
||||
import { manifoldLoveUserId } from 'common/profiles/constants'
|
||||
import { DisplayUser } from 'common/api/user-types'
|
||||
|
||||
export const ChatMessageItem = memo(function ChatMessageItem(props: {
|
||||
|
||||
@@ -11,7 +11,7 @@ import {GenderFilter, GenderFilterText} from './gender-filter'
|
||||
import {LocationFilter, LocationFilterProps, LocationFilterText,} from './location-filter'
|
||||
import {RelationshipFilter, RelationshipFilterText,} from './relationship-filter'
|
||||
import {MyMatchesToggle} from './my-matches-toggle'
|
||||
import {Profile} from 'common/love/profile'
|
||||
import {Profile} from 'common/profiles/profile'
|
||||
import {FilterFields} from "common/filters";
|
||||
import {ShortBioToggle} from "web/components/filters/short-bio-toggle";
|
||||
import {PrefGenderFilter, PrefGenderFilterText} from "web/components/filters/pref-gender-filter";
|
||||
|
||||
@@ -4,7 +4,7 @@ import {Slider} from 'web/components/widgets/slider'
|
||||
import {usePersistentInMemoryState} from 'web/hooks/use-persistent-in-memory-state'
|
||||
import {Row} from 'web/components/layout/row'
|
||||
import {City, CityRow, profileToCity, originToCity, useCitySearch,} from '../search-location'
|
||||
import {Profile} from 'common/love/profile'
|
||||
import {Profile} from 'common/profiles/profile'
|
||||
import {useEffect, useState} from 'react'
|
||||
import {Input} from 'web/components/widgets/input'
|
||||
import {XIcon} from '@heroicons/react/solid'
|
||||
|
||||
@@ -8,7 +8,7 @@ import {GenderFilter, GenderFilterText} from './gender-filter'
|
||||
import {LocationFilter, LocationFilterProps, LocationFilterText,} from './location-filter'
|
||||
import {RelationshipFilter, RelationshipFilterText,} from './relationship-filter'
|
||||
import {MyMatchesToggle} from './my-matches-toggle'
|
||||
import {Profile} from 'common/love/profile'
|
||||
import {Profile} from 'common/profiles/profile'
|
||||
import {Gender} from 'common/gender'
|
||||
import {RelationshipType, RomanticType} from 'web/lib/util/convert-relationship-type'
|
||||
import {FilterFields} from "common/filters";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Row } from 'web/components/layout/row'
|
||||
import clsx from 'clsx'
|
||||
import { Profile } from 'common/love/profile'
|
||||
import { Profile } from 'common/profiles/profile'
|
||||
|
||||
export function MyMatchesToggle(props: {
|
||||
setYourFilters: (checked: boolean) => void
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {Profile} from 'common/love/profile'
|
||||
import {Profile} from 'common/profiles/profile'
|
||||
import {useEffect, useState} from 'react'
|
||||
import {IoFilterSharp} from 'react-icons/io5'
|
||||
import {Button} from 'web/components/buttons/button'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {Profile} from "common/love/profile";
|
||||
import {Profile} from "common/profiles/profile";
|
||||
import {useIsLooking} from "web/hooks/use-is-looking";
|
||||
import {usePersistentLocalState} from "web/hooks/use-persistent-local-state";
|
||||
import {useCallback, useEffect} from "react";
|
||||
|
||||
@@ -21,7 +21,7 @@ import {useUser} from 'web/hooks/use-user'
|
||||
import {GoogleOneTapLogin} from 'web/lib/firebase/google-onetap-login'
|
||||
import Sidebar from './nav/love-sidebar'
|
||||
import {useProfile} from 'web/hooks/use-profile'
|
||||
import {Profile} from 'common/love/profile'
|
||||
import {Profile} from 'common/profiles/profile'
|
||||
import {NotificationsIcon, SolidNotificationsIcon} from './notifications-icon'
|
||||
import {IS_MAINTENANCE} from "common/constants";
|
||||
import {MdThumbUp} from "react-icons/md";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Row } from 'web/components/layout/row'
|
||||
import { HeartIcon } from '@heroicons/react/solid'
|
||||
import { Profile } from 'common/love/profile'
|
||||
import { Profile } from 'common/profiles/profile'
|
||||
import Image from 'next/image'
|
||||
import { Col } from 'web/components/layout/col'
|
||||
import { UserIcon } from '@heroicons/react/solid'
|
||||
|
||||
@@ -16,7 +16,7 @@ import {track} from 'web/lib/service/analytics'
|
||||
import {Races} from './race'
|
||||
import {Carousel} from 'web/components/widgets/carousel'
|
||||
import {tryCatch} from 'common/util/try-catch'
|
||||
import {ProfileRow} from 'common/love/profile'
|
||||
import {ProfileRow} from 'common/profiles/profile'
|
||||
import {removeNullOrUndefinedProps} from 'common/util/object'
|
||||
import {isEqual, range} from 'lodash'
|
||||
import {PlatformSelect} from 'web/components/widgets/platform-select'
|
||||
@@ -27,7 +27,7 @@ import {Select} from 'web/components/widgets/select'
|
||||
import {City, CityRow, profileToCity, useCitySearch} from "web/components/search-location";
|
||||
import {AddPhotosWidget} from './widgets/add-photos'
|
||||
import {RadioToggleGroup} from "web/components/widgets/radio-toggle-group";
|
||||
import {MultipleChoiceOptions} from "common/love/multiple-choice";
|
||||
import {MultipleChoiceOptions} from "common/profiles/multiple-choice";
|
||||
import {POLITICAL_CHOICES, RELATIONSHIP_CHOICES, ROMANTIC_CHOICES} from "web/components/filters/choices";
|
||||
import toast from "react-hot-toast";
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ import {convertGenderPlural, Gender} from 'common/gender'
|
||||
import {HiOutlineGlobe} from 'react-icons/hi'
|
||||
import {UserHandles} from 'web/components/user/user-handles'
|
||||
import {convertRace} from './race'
|
||||
import {Profile} from 'common/love/profile'
|
||||
import {Profile} from 'common/profiles/profile'
|
||||
import {UserActivity} from "common/user";
|
||||
import {ClockIcon} from "@heroicons/react/solid";
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import { Carousel } from 'web/components/widgets/carousel'
|
||||
import { MODAL_CLASS, Modal } from 'web/components/layout/modal'
|
||||
import { Col } from 'web/components/layout/col'
|
||||
import { SignUpButton } from './nav/love-sidebar'
|
||||
import { Profile } from 'common/love/profile'
|
||||
import { Profile } from 'common/profiles/profile'
|
||||
import { useAdmin } from 'web/hooks/use-admin'
|
||||
import { Button } from 'web/components/buttons/button'
|
||||
import { updateProfile } from 'web/lib/api'
|
||||
|
||||
@@ -13,7 +13,7 @@ import { updateProfile } from 'web/lib/api'
|
||||
import { Tooltip } from 'web/components/widgets/tooltip'
|
||||
import { toast } from 'react-hot-toast'
|
||||
import { Subtitle } from './widgets/profile-subtitle'
|
||||
import { Profile } from 'common/love/profile'
|
||||
import { Profile } from 'common/profiles/profile'
|
||||
|
||||
export const ProfileCommentSection = (props: {
|
||||
onUser: User
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {Profile} from 'common/love/profile'
|
||||
import {CompatibilityScore} from 'common/love/compatibility-score'
|
||||
import {Profile} from 'common/profiles/profile'
|
||||
import {CompatibilityScore} from 'common/profiles/compatibility-score'
|
||||
import {CompassLoadingIndicator} from 'web/components/widgets/loading-indicator'
|
||||
import {LoadMoreUntilNotVisible} from 'web/components/widgets/visibility-observer'
|
||||
import {track} from 'web/lib/service/analytics'
|
||||
|
||||
@@ -14,7 +14,7 @@ import {OnlineIcon} from '../online-icon'
|
||||
import {track} from 'web/lib/service/analytics'
|
||||
import DropdownMenu from 'web/components/comments/dropdown-menu'
|
||||
import {ShareProfileButton} from '../widgets/share-profile-button'
|
||||
import {Profile} from 'common/love/profile'
|
||||
import {Profile} from 'common/profiles/profile'
|
||||
import {useUser} from 'web/hooks/use-user'
|
||||
import {linkClass} from 'web/components/widgets/site-link'
|
||||
import {updateProfile} from 'web/lib/api'
|
||||
|
||||
@@ -8,7 +8,7 @@ import {User} from 'web/lib/firebase/users'
|
||||
import ProfileAbout from 'web/components/profile-about'
|
||||
import {ProfileAnswers} from 'web/components/answers/profile-answers'
|
||||
import {SignUpButton} from 'web/components/nav/love-sidebar'
|
||||
import {Profile} from 'common/love/profile'
|
||||
import {Profile} from 'common/profiles/profile'
|
||||
import {ProfileBio} from 'web/components/bio/profile-bio'
|
||||
import {useGetter} from 'web/hooks/use-getter'
|
||||
import {getStars} from 'web/lib/supabase/stars'
|
||||
|
||||
@@ -7,7 +7,7 @@ import { Row } from 'web/components/layout/row'
|
||||
import GenderIcon from '../gender-icon'
|
||||
import { Gender, convertGender } from 'common/gender'
|
||||
import { formatProfileValue } from '../profile-about'
|
||||
import { Profile } from 'common/love/profile'
|
||||
import { Profile } from 'common/profiles/profile'
|
||||
|
||||
export default function ProfilePrimaryInfo(props: { profile: Profile }) {
|
||||
const { profile } = props
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {Profile} from 'common/love/profile'
|
||||
import {Profile} from 'common/profiles/profile'
|
||||
import {removeNullOrUndefinedProps} from 'common/util/object'
|
||||
import {Search} from 'web/components/filters/search'
|
||||
import {useProfile} from 'web/hooks/use-profile'
|
||||
|
||||
@@ -10,7 +10,7 @@ import {User} from 'common/user'
|
||||
import {useEditableUserInfo} from 'web/hooks/use-editable-user-info'
|
||||
import {LoadingIndicator} from 'web/components/widgets/loading-indicator'
|
||||
import {Column} from 'common/supabase/utils'
|
||||
import {ProfileRow} from 'common/love/profile'
|
||||
import {ProfileRow} from 'common/profiles/profile'
|
||||
import {SignupBio} from "web/components/bio/editable-bio";
|
||||
import {Editor} from "@tiptap/core";
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ import clsx from 'clsx'
|
||||
import {useEffect, useRef, useState} from 'react'
|
||||
import {api} from 'web/lib/api'
|
||||
import {countryCodeToFlag} from 'web/lib/util/location'
|
||||
import {ProfileRow} from 'common/love/profile'
|
||||
import {ProfileRow} from 'common/profiles/profile'
|
||||
import {OriginLocation} from "common/filters";
|
||||
|
||||
function isDigitString(value: string): boolean {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { BadgeCheckIcon } from '@heroicons/react/solid'
|
||||
import clsx from 'clsx'
|
||||
|
||||
import { CompatibilityScore } from 'common/love/compatibility-score'
|
||||
import { CompatibilityScore } from 'common/profiles/compatibility-score'
|
||||
import { formatPercent } from 'common/util/format'
|
||||
import { Row } from 'web/components/layout/row'
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ import { Tooltip } from 'web/components/widgets/tooltip'
|
||||
import { Col } from 'web/components/layout/col'
|
||||
import { MODAL_CLASS, Modal } from 'web/components/layout/modal'
|
||||
import { Row } from 'web/components/layout/row'
|
||||
import { Profile } from 'common/love/profile'
|
||||
import { Profile } from 'common/profiles/profile'
|
||||
import { useUserById } from 'web/hooks/use-user-supabase'
|
||||
import { MatchAvatars } from '../matches/match-avatars'
|
||||
import { useProfile } from 'web/hooks/use-profile'
|
||||
|
||||
@@ -3,7 +3,7 @@ import Image from 'next/image'
|
||||
import Link from 'next/link'
|
||||
import { UserIcon } from '@heroicons/react/solid'
|
||||
|
||||
import { Profile } from 'common/love/profile'
|
||||
import { Profile } from 'common/profiles/profile'
|
||||
import { useProfileByUserId } from 'web/hooks/use-profile'
|
||||
import { Col } from 'web/components/layout/col'
|
||||
import { Avatar, EmptyAvatar } from 'web/components/widgets/avatar'
|
||||
|
||||
@@ -5,7 +5,7 @@ import clsx from 'clsx'
|
||||
import { MODAL_CLASS, Modal } from 'web/components/layout/modal'
|
||||
import { MatchAvatars } from '../matches/match-avatars'
|
||||
import { Row } from 'web/components/layout/row'
|
||||
import { Profile } from 'common/love/profile'
|
||||
import { Profile } from 'common/profiles/profile'
|
||||
import { useProfileByUserId } from 'web/hooks/use-profile'
|
||||
import { Col } from 'web/components/layout/col'
|
||||
import { EmptyAvatar, Avatar } from 'web/components/widgets/avatar'
|
||||
|
||||
@@ -6,7 +6,7 @@ import { api } from 'web/lib/api'
|
||||
import { buttonClass } from 'web/components/buttons/button'
|
||||
import { track } from 'web/lib/service/analytics'
|
||||
import { Tooltip } from 'web/components/widgets/tooltip'
|
||||
import { Profile } from 'common/love/profile'
|
||||
import { Profile } from 'common/profiles/profile'
|
||||
|
||||
export const StarButton = (props: {
|
||||
targetProfile: Profile
|
||||
|
||||
@@ -3,7 +3,7 @@ import {useEffect} from 'react'
|
||||
import {Row} from 'common/supabase/utils'
|
||||
import {usePersistentInMemoryState} from 'web/hooks/use-persistent-in-memory-state'
|
||||
import {User} from 'common/user'
|
||||
import {getProfileRow, Profile, ProfileRow} from 'common/love/profile'
|
||||
import {getProfileRow, Profile, ProfileRow} from 'common/profiles/profile'
|
||||
import {db} from 'web/lib/supabase/db'
|
||||
import {usePersistentLocalState} from 'web/hooks/use-persistent-local-state'
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import { usePersistentInMemoryState } from 'web/hooks/use-persistent-in-memory-s
|
||||
import { api } from 'web/lib/api'
|
||||
import { APIResponse } from 'common/api/schema'
|
||||
import { useProfileByUserId } from './use-profile'
|
||||
import { getProfilesCompatibilityFactor } from 'common/love/compatibility-score'
|
||||
import { getProfilesCompatibilityFactor } from 'common/profiles/compatibility-score'
|
||||
|
||||
export const useCompatibleProfiles = (
|
||||
userId: string | null | undefined,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import Router from 'next/router'
|
||||
import { firebaseLogin } from 'web/lib/firebase/users'
|
||||
import { db } from 'web/lib/supabase/db'
|
||||
import { getProfileRow } from 'common/love/profile'
|
||||
import { getProfileRow } from 'common/profiles/profile'
|
||||
|
||||
export const signupThenMaybeRedirectToSignup = async () => {
|
||||
const creds = await firebaseLogin()
|
||||
|
||||
@@ -9,8 +9,8 @@ import {useUser} from 'web/hooks/use-user'
|
||||
import {useTracking} from 'web/hooks/use-tracking'
|
||||
import {BackButton} from 'web/components/back-button'
|
||||
import {useSaveReferral} from 'web/hooks/use-save-referral'
|
||||
import {getLoveOgImageUrl} from 'common/love/og-image'
|
||||
import {getProfileRow, ProfileRow} from 'common/love/profile'
|
||||
import {getLoveOgImageUrl} from 'common/profiles/og-image'
|
||||
import {getProfileRow, ProfileRow} from 'common/profiles/profile'
|
||||
import {db} from 'web/lib/supabase/db'
|
||||
import {ProfileInfo} from 'web/components/profile/profile-info'
|
||||
import {User} from 'common/user'
|
||||
|
||||
@@ -3,7 +3,7 @@ import { ImageResponseOptions } from '@vercel/og/dist/types'
|
||||
import { NextRequest } from 'next/server'
|
||||
import { classToTw } from 'web/components/og/utils'
|
||||
import { Gender, convertGender } from 'common/gender'
|
||||
import { LoveOgProps } from 'common/love/og-image'
|
||||
import { LoveOgProps } from 'common/profiles/og-image'
|
||||
|
||||
export const config = { runtime: 'edge' }
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {Profile, ProfileRow} from 'common/love/profile'
|
||||
import {Profile, ProfileRow} from 'common/profiles/profile'
|
||||
import {Column} from 'common/supabase/utils'
|
||||
import {User} from 'common/user'
|
||||
import {OptionalLoveUserForm} from 'web/components/optional-profile-form'
|
||||
|
||||
@@ -9,7 +9,7 @@ import {createUserWithEmailAndPassword} from "firebase/auth";
|
||||
import {auth} from "web/lib/firebase/users";
|
||||
import FavIcon from "web/public/FavIcon";
|
||||
import {LovePage} from "web/components/love-page";
|
||||
import {getProfileRow} from "common/love/profile";
|
||||
import {getProfileRow} from "common/profiles/profile";
|
||||
import {db} from "web/lib/supabase/db";
|
||||
import Router from "next/router";
|
||||
import {useUser} from "web/hooks/use-user";
|
||||
|
||||
@@ -7,7 +7,7 @@ import {auth, firebaseLogin} from "web/lib/firebase/users";
|
||||
import FavIcon from "web/public/FavIcon";
|
||||
|
||||
import {signInWithEmailAndPassword} from "firebase/auth";
|
||||
import {getProfileRow} from "common/love/profile";
|
||||
import {getProfileRow} from "common/profiles/profile";
|
||||
import {db} from "web/lib/supabase/db";
|
||||
import Router from "next/router";
|
||||
import {LovePage} from "web/components/love-page";
|
||||
|
||||
@@ -12,7 +12,7 @@ import {track} from 'web/lib/service/analytics'
|
||||
import {safeLocalStorage} from 'web/lib/util/local'
|
||||
import {removeNullOrUndefinedProps} from 'common/util/object'
|
||||
import {useProfileByUserId} from 'web/hooks/use-profile'
|
||||
import {ProfileRow} from 'common/love/profile'
|
||||
import {ProfileRow} from 'common/profiles/profile'
|
||||
import {LovePage} from "web/components/love-page";
|
||||
|
||||
export default function SignupPage() {
|
||||
|
||||
Reference in New Issue
Block a user