hata ayıklama ve kod temizliği

This commit is contained in:
2026-01-11 23:58:09 +03:00
parent b2a915240f
commit 32009b4886
22 changed files with 117 additions and 92 deletions

View File

@@ -39,7 +39,7 @@ export default function ContactPage() {
} else {
toast.error("Hata: " + response.error)
}
} catch (error) {
} catch {
toast.error("Bir hata oluştu.")
} finally {
setIsSubmitting(false)

View File

@@ -1,5 +1,5 @@
import Image from "next/image"
export default function CorporatePage() {
return (
@@ -8,7 +8,7 @@ export default function CorporatePage() {
<section className="space-y-6 text-center">
<h1 className="text-4xl md:text-5xl font-bold tracking-tight font-outfit">Hakkımızda</h1>
<p className="text-xl text-muted-foreground">
1995'ten beri güvenliğinizi en değerli hazinemiz olarak görüyoruz.
1995&apos;ten beri güvenliğinizi en değerli hazinemiz olarak görüyoruz.
</p>
</section>
@@ -28,7 +28,7 @@ export default function CorporatePage() {
</p>
<h2 className="text-3xl font-bold pt-4">Vizyonumuz</h2>
<p className="text-slate-600 dark:text-slate-300 leading-relaxed">
Türkiye'nin lider çelik kasa üreticisi olarak, global pazarda güvenilirlik ve kalite
Türkiye&apos;nin lider çelik kasa üreticisi olarak, global pazarda güvenilirlik ve kalite
denince akla gelen ilk marka olmak. Yenilikçi Ar-Ge çalışmalarımızla güvenlik teknolojilerine
yön vermek.
</p>

View File

@@ -36,7 +36,7 @@ export default function LoginPage() {
router.push("/dashboard")
router.refresh()
} catch (err: any) {
} catch {
setError("Bir hata oluştu. Lütfen tekrar deneyin.")
} finally {
setLoading(false)

View File

@@ -1,6 +1,6 @@
import Link from "next/link"
import Image from "next/image"
import { ArrowRight, ShieldCheck, Lock, Award, History, LayoutDashboard, LogIn } from "lucide-react"
import { ArrowRight, ShieldCheck, Lock, History, LayoutDashboard } from "lucide-react"
import { Button } from "@/components/ui/button"
import { Card, CardContent } from "@/components/ui/card"
import { createClient } from "@/lib/supabase-server"

View File

@@ -1,7 +1,7 @@
import { Card, CardContent, CardFooter, CardHeader, CardTitle } from "@/components/ui/card"
import { Card, CardFooter, CardHeader, CardTitle } from "@/components/ui/card"
import { Button } from "@/components/ui/button"
import Image from "next/image"
const products = [
{

View File

@@ -1,7 +1,7 @@
"use client"
import { useState } from "react"
import { useRouter } from "next/navigation"
import Link from "next/link"
import { supabase } from "@/lib/supabase"
import { Button } from "@/components/ui/button"
@@ -11,7 +11,6 @@ import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle }
import { AlertCircle, Loader2, CheckCircle2 } from "lucide-react"
export default function SignUpPage() {
const router = useRouter()
const [email, setEmail] = useState("")
const [password, setPassword] = useState("")
const [loading, setLoading] = useState(false)
@@ -76,7 +75,7 @@ export default function SignUpPage() {
<CardHeader className="space-y-1">
<CardTitle className="text-2xl font-bold">Hesap Oluştur</CardTitle>
<CardDescription>
ParaKasa'ya katılmak için bilgilerinizi girin
ParaKasa&apos;ya katılmak için bilgilerinizi girin
</CardDescription>
</CardHeader>
<CardContent>