cleanup (this doesn't work)

This commit is contained in:
Maze Winther
2025-07-16 14:37:08 +02:00
parent 527d588897
commit 8bc26539eb
11 changed files with 388 additions and 577 deletions
+8 -4
View File
@@ -15,7 +15,7 @@ import { Label } from "@/components/ui/label";
import { Separator } from "@/components/ui/separator";
import Link from "next/link";
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
import { ChevronLeft, Loader2 } from "lucide-react";
import { ArrowLeft, Loader2 } from "lucide-react";
import { GoogleIcon } from "@/components/icons";
import { useLogin } from "@/hooks/auth/useLogin";
@@ -41,7 +41,7 @@ const LoginPage = () => {
onClick={() => router.back()}
className="absolute top-6 left-6"
>
<ChevronLeft className="h-5 w-5" /> Back
<ArrowLeft className="h-5 w-5" /> Back
</Button>
<Card className="w-[400px] shadow-lg border-0">
<CardHeader className="text-center pb-4">
@@ -119,7 +119,11 @@ const LoginPage = () => {
className="w-full h-11"
size="lg"
>
{isEmailLoading ? <Loader2 className="animate-spin" /> : "Sign in"}
{isEmailLoading ? (
<Loader2 className="animate-spin" />
) : (
"Sign in"
)}
</Button>
</div>
</div>
@@ -137,6 +141,6 @@ const LoginPage = () => {
</Card>
</div>
);
}
};
export default memo(LoginPage);
+3 -3
View File
@@ -15,7 +15,7 @@ import { Label } from "@/components/ui/label";
import { Separator } from "@/components/ui/separator";
import Link from "next/link";
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
import { ChevronLeft, Loader2 } from "lucide-react";
import { ArrowLeft, Loader2 } from "lucide-react";
import { GoogleIcon } from "@/components/icons";
import { useSignUp } from "@/hooks/auth/useSignUp";
@@ -43,7 +43,7 @@ const SignUpPage = () => {
onClick={() => router.back()}
className="absolute top-6 left-6"
>
<ChevronLeft className="h-5 w-5" /> Back
<ArrowLeft className="h-5 w-5" /> Back
</Button>
<Card className="w-[400px] shadow-lg border-0">
<CardHeader className="text-center pb-4">
@@ -157,6 +157,6 @@ const SignUpPage = () => {
</Card>
</div>
);
}
};
export default memo(SignUpPage);