From a499fa213f8988559313e3905da5f69e46345fc5 Mon Sep 17 00:00:00 2001 From: oiov Date: Mon, 29 Jul 2024 11:39:15 +0800 Subject: [PATCH] chore: add env var and fixup --- components/dashboard/count-up.tsx | 4 ++-- components/forms/user-auth-form.tsx | 22 +++++++++++++++++++--- config/site.ts | 2 ++ env.mjs | 6 ++++-- types/index.d.ts | 1 + 5 files changed, 28 insertions(+), 7 deletions(-) diff --git a/components/dashboard/count-up.tsx b/components/dashboard/count-up.tsx index 3e10ecb..7253ee9 100644 --- a/components/dashboard/count-up.tsx +++ b/components/dashboard/count-up.tsx @@ -2,6 +2,6 @@ import CountUp from "react-countup"; -export default ({ count }: { count: number }) => { +export default function ({ count }: { count: number }) { return ; -}; +} diff --git a/components/forms/user-auth-form.tsx b/components/forms/user-auth-form.tsx index e434918..0c9a929 100644 --- a/components/forms/user-auth-form.tsx +++ b/components/forms/user-auth-form.tsx @@ -8,6 +8,7 @@ import { useForm } from "react-hook-form"; import { toast } from "sonner"; import * as z from "zod"; +import { siteConfig } from "@/config/site"; import { cn } from "@/lib/utils"; import { userAuthSchema } from "@/lib/validations/auth"; import { buttonVariants } from "@/components/ui/button"; @@ -82,7 +83,12 @@ export function UserAuthForm({ className, type, ...props }: UserAuthFormProps) {