opt to use magic codes instead (update form to remove password, change button label, add icon to button)
All checks were successful
Build and Push Docker Image / build_and_push (push) Successful in 41s
All checks were successful
Build and Push Docker Image / build_and_push (push) Successful in 41s
This commit is contained in:
parent
d7f309af3a
commit
818023e5c1
@ -3,11 +3,10 @@
|
||||
import Link from "next/link"
|
||||
import { useState } from "react"
|
||||
import { TextField, Button, Flex, Text, Card } from "@radix-ui/themes"
|
||||
import { Mail, Lock } from "lucide-react"
|
||||
import { Mail } from "lucide-react"
|
||||
|
||||
export default function Login() {
|
||||
const [email, setEmail] = useState("")
|
||||
const [password, setPassword] = useState("")
|
||||
|
||||
const handleSubmit = (e: React.FormEvent) => {
|
||||
e.preventDefault()
|
||||
@ -32,19 +31,10 @@ export default function Login() {
|
||||
<Mail height="16" width="16" />
|
||||
</TextField.Slot>
|
||||
</TextField.Root>
|
||||
<TextField.Root
|
||||
placeholder="Password"
|
||||
type="password"
|
||||
value={password}
|
||||
onChange={(e: React.ChangeEvent<HTMLInputElement>) => setPassword(e.target.value)}
|
||||
className="mb-3"
|
||||
required
|
||||
>
|
||||
<TextField.Slot>
|
||||
<Lock height="16" width="16" />
|
||||
</TextField.Slot>
|
||||
</TextField.Root>
|
||||
<Button color="gray" variant="outline" type="submit" highContrast>Log in</Button>
|
||||
<Button color="gray" variant="outline" type="submit" highContrast>
|
||||
<Mail height="16" width="16" />
|
||||
Send Magic Code
|
||||
</Button>
|
||||
<Link
|
||||
href="https://user.pontusmail.org/admin/user/signup"
|
||||
className="text-sm underline text-center"
|
||||
|
Loading…
x
Reference in New Issue
Block a user