Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AMB-174] refactor: remove referral require #41

Merged
merged 1 commit into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions src/components/form/SignUpForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const FormSchema = z
password: z.string(),
confirm_password: z.string(),
password_hint: z.string().optional(),
referral_code: z.string().min(1, { message: 'Required.' }),
referral_code: z.string().optional(),
accept_tos_and_pp: z.boolean(),
accept_condition_1: z.boolean(),
})
Expand Down Expand Up @@ -349,10 +349,8 @@ export function SignUpForm() {
</FormControl>
<FormMessage />
<FormDescription>
MiBanco signups are currently available by invitation only.
<br />
Please enter your invite code to complete the signup
process.
If you have an invite code please enter to complete the
signup process.
</FormDescription>
</FormItem>
)}
Expand Down
10 changes: 10 additions & 0 deletions src/components/form/WaitlistForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,16 @@ export const WaitlistForm: FC<{
>
I have a Referral Code
</Button>

<Button
type="button"
onClick={() => setView('sign-up')}
disabled={loading}
variant={'ghost'}
className="mt-4 w-full"
>
I am an Amboss Subscriber
</Button>
</div>
</CardFooter>
</form>
Expand Down
Loading