diff --git a/.env.example b/.env.example index 96102bb..bb911f7 100644 --- a/.env.example +++ b/.env.example @@ -14,6 +14,7 @@ DEMO_MODE=false DOMAIN=localhost AUTH_TRUST_HOST="http://localhost" AUTH_SECRET=your_secret_key_here +STOCK_MANAGER_DEFAULT_LOCALE=en # ADMIN BOOTSTRAP ADMIN_BOOTSTRAP_ENABLED=true diff --git a/src/app/(auth)/login/_components/login-form.tsx b/src/app/(auth)/login/_components/login-form.tsx index dd31495..d342327 100644 --- a/src/app/(auth)/login/_components/login-form.tsx +++ b/src/app/(auth)/login/_components/login-form.tsx @@ -6,9 +6,14 @@ import { useState } from "react" import { useForm } from "react-hook-form" import { signInAction } from "@/actions/auth.actions" import { Button } from "@/components/ui/button" +import type { Dictionary } from "@/i18n/dictionaries" import { type SignInFormType, signInSchema } from "@/schemas/auth.schema" -export default function SignInForm() { +type SignInFormProps = { + copy: Dictionary["login"] +} + +export default function SignInForm({ copy }: SignInFormProps) { const router = useRouter() const searchParams = useSearchParams() const callbackUrl = searchParams.get("callbackUrl") @@ -37,7 +42,7 @@ export default function SignInForm() { return (