diff --git a/.husky/pre-commit b/.husky/pre-commit index e69de29..10da9ff 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -0,0 +1 @@ +npm run build \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 79d06f5..6e77eb8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "mod-auth", - "version": "0.1.0", + "version": "0.2.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "mod-auth", - "version": "0.1.0", + "version": "0.2.0", "dependencies": { "@tailwindcss/vite": "^4.1.16", "lucide-react": "^0.548.0", diff --git a/package.json b/package.json index c05e421..20650f5 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "mod-auth", "private": true, - "version": "0.1.0", + "version": "0.2.0", "type": "module", "scripts": { "dev": "run-p vite:dev", diff --git a/src/components/SignIn.tsx b/src/components/SignIn.tsx index 838c55c..96e2b9a 100644 --- a/src/components/SignIn.tsx +++ b/src/components/SignIn.tsx @@ -14,6 +14,9 @@ export function SignIn({ onBack, onSignUp }: SignInProps) { const handleSubmit = (e: React.FormEvent) => { e.preventDefault(); console.log("signIn:", { email, password }); + if ((window as any)?.shellNavigate) { + (window as any).shellNavigate?.("/catalog"); + } }; return ( @@ -69,6 +72,7 @@ export function SignIn({ onBack, onSignUp }: SignInProps) { id="password" type="password" placeholder="••••••••" + autoComplete="current-password" value={password} onChange={(e) => setPassword(e.target.value)} required