Skip to content

Commit

Permalink
update login text
Browse files Browse the repository at this point in the history
  • Loading branch information
cstrnt authored Feb 1, 2024
1 parent 6e5986f commit add0fbf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion apps/web/src/components/UserAuthForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ import { FaGithub, FaGoogle } from "react-icons/fa";

interface UserAuthFormProps extends React.HTMLAttributes<HTMLDivElement> {
callbackUrl?: string;
customButtonText?: string;
}

export function UserAuthForm({
className,
callbackUrl,
customButtonText,
...props
}: UserAuthFormProps) {
const { register, handleSubmit, formState } = useForm<{ email: string }>();
Expand Down Expand Up @@ -54,7 +56,7 @@ export function UserAuthForm({
</p>
)}
</div>
<Button>Sign In with Email</Button>
<Button>{customButtonText ?? "Sign In with Email"}</Button>
</div>
</form>
<div className="relative">
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/pages/signup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default function AuthenticationPage() {
Enter your email below to create your account
</p>
</div>
<UserAuthForm callbackUrl={DEFAULT_CALLBACK_URL} />
<UserAuthForm callbackUrl={DEFAULT_CALLBACK_URL} customButtonText="Sign Up with Email"/>
<p className="px-8 text-center text-sm text-muted-foreground">
By clicking continue, you agree to our{" "}
<Link
Expand Down

0 comments on commit add0fbf

Please sign in to comment.