Skip to content

Commit

Permalink
refactor: remove referral require
Browse files Browse the repository at this point in the history
  • Loading branch information
secondl1ght committed Aug 1, 2024
1 parent 786b66b commit 90909f5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
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

0 comments on commit 90909f5

Please sign in to comment.