mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-09 12:27:43 +00:00
demo: fix types
This commit is contained in:
@@ -45,7 +45,6 @@ export default function Component() {
|
||||
if (isSubmitted) {
|
||||
return (
|
||||
<main className="flex flex-col items-center justify-center min-h-[calc(100vh-10rem)]">
|
||||
|
||||
<Card className="w-[350px]">
|
||||
<CardHeader>
|
||||
<CardTitle>Check your email</CardTitle>
|
||||
|
||||
@@ -20,7 +20,9 @@ import { toast } from "sonner";
|
||||
|
||||
export default function ResetPassword({
|
||||
params,
|
||||
}: { params: { token: string } }) {
|
||||
}: {
|
||||
params: { token: string };
|
||||
}) {
|
||||
const [password, setPassword] = useState("");
|
||||
const [confirmPassword, setConfirmPassword] = useState("");
|
||||
const [isSubmitting, setIsSubmitting] = useState(false);
|
||||
@@ -43,7 +45,6 @@ export default function ResetPassword({
|
||||
}
|
||||
return (
|
||||
<div className="flex flex-col items-center justify-center min-h-[calc(100vh-10rem)]">
|
||||
|
||||
<Card className="w-[350px]">
|
||||
<CardHeader>
|
||||
<CardTitle>Reset password</CardTitle>
|
||||
|
||||
@@ -9,15 +9,20 @@ export default function Page() {
|
||||
<div className="w-full">
|
||||
<div className="flex items-center flex-col justify-center w-full md:py-10">
|
||||
<div className="md:w-[400px]">
|
||||
<Tabs tabs={[{
|
||||
<Tabs
|
||||
tabs={[
|
||||
{
|
||||
title: "Sign In",
|
||||
value: "sign-in",
|
||||
content: <SignIn />,
|
||||
}, {
|
||||
},
|
||||
{
|
||||
title: "Sign Up",
|
||||
value: "sign-up",
|
||||
content: <SignUp />,
|
||||
}]} />
|
||||
},
|
||||
]}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -29,7 +29,7 @@ export default function Component() {
|
||||
|
||||
const requestOTP = async () => {
|
||||
const res = await client.twoFactor.sendOtp({
|
||||
options: {
|
||||
fetchOptions: {
|
||||
body: {
|
||||
returnOTP: true,
|
||||
},
|
||||
@@ -102,7 +102,8 @@ export default function Component() {
|
||||
</div>
|
||||
{message && (
|
||||
<div
|
||||
className={`flex items-center gap-2 mt-4 ${isError ? "text-red-500" : "text-primary"
|
||||
className={`flex items-center gap-2 mt-4 ${
|
||||
isError ? "text-red-500" : "text-primary"
|
||||
}`}
|
||||
>
|
||||
{isError ? (
|
||||
|
||||
@@ -28,5 +28,3 @@ export const {
|
||||
useListOrganizations,
|
||||
useActiveOrganization,
|
||||
} = client;
|
||||
|
||||
client.$Infer;
|
||||
|
||||
Reference in New Issue
Block a user