diff --git a/libs/client/features/src/onboarding/steps/CountryWaitlist.tsx b/libs/client/features/src/onboarding/steps/CountryWaitlist.tsx deleted file mode 100644 index ebbca2fe..00000000 --- a/libs/client/features/src/onboarding/steps/CountryWaitlist.tsx +++ /dev/null @@ -1,62 +0,0 @@ -import Link from 'next/link' -import { useUserApi } from '@maybe-finance/client/shared' -import { Button } from '@maybe-finance/design-system' -import toast from 'react-hot-toast' -import { signOut } from 'next-auth/react' - -export function CountryWaitlist({ country }: { country?: string }) { - const { useDelete } = useUserApi() - - const deleteUser = useDelete({ - onSuccess() { - toast.success(`Account deleted`) - setTimeout(() => signOut(), 500) - }, - onError() { - toast.error(`Error deleting account`) - }, - }) - - return ( -
-

- Unfortunately we're only accepting users from the US for now -

-
-

We hate doing this, but for now we’re only accepting users from the US. Why?

-

- Well besides not being able to automatically connect to your institution, our - financial advisors wouldn’t be able to give you relevant localized advice and - would likely breach some regulations. -

-

- That being said, we do plan on expanding Maybe to other countries soon. So we’ll - let you know via email once we launch Maybe in {country || 'your country'}. -

-
- - - - -
- ) -} diff --git a/libs/client/features/src/onboarding/steps/Profile.tsx b/libs/client/features/src/onboarding/steps/Profile.tsx index b91938a3..6a7250d3 100644 --- a/libs/client/features/src/onboarding/steps/Profile.tsx +++ b/libs/client/features/src/onboarding/steps/Profile.tsx @@ -29,7 +29,6 @@ import type { StepProps } from './StepProps' import { Switch } from '@headlessui/react' import { BrowserUtil, useUserApi } from '@maybe-finance/client/shared' import type { Household, MaybeGoal } from '@prisma/client' -import { CountryWaitlist } from './CountryWaitlist' import { DateUtil, Geo } from '@maybe-finance/shared' type FormValues = { @@ -108,7 +107,6 @@ function ProfileForm({ title, onSubmit, defaultValues }: ProfileViewProps) { }) const country = watch('country') - const [showCountryWaitlist, setShowCountryWaitlist] = useState(false) useEffect(() => { trigger() @@ -116,9 +114,7 @@ function ProfileForm({ title, onSubmit, defaultValues }: ProfileViewProps) { const { errors } = useFormState({ control }) - return showCountryWaitlist ? ( - c.code === country)?.name} /> - ) : ( + return (

{title}

@@ -216,13 +212,7 @@ function ProfileForm({ title, onSubmit, defaultValues }: ProfileViewProps) { label="Where are you based?" onClick={() => setCurrentQuestion('residence')} back={() => setCurrentQuestion('household')} - next={() => { - if (country === 'US') { - setCurrentQuestion('goals') - } else { - setShowCountryWaitlist(true) - } - }} + next={() => setCurrentQuestion('goals')} >