fix: Resolve build errors (unescaped quotes, unused vars)

This commit is contained in:
2025-12-08 11:00:49 +03:00
parent 08f8a55b6c
commit b905ec0750
5 changed files with 7 additions and 7 deletions

View File

@@ -43,7 +43,7 @@ export function ContentForm({ initialContent }: ContentFormProps) {
} else { } else {
toast.error(result.error) toast.error(result.error)
} }
} catch (error) { } catch {
toast.error("Bir hata oluştu") toast.error("Bir hata oluştu")
} finally { } finally {
setLoading(false) setLoading(false)
@@ -109,7 +109,7 @@ export function ContentForm({ initialContent }: ContentFormProps) {
)} )}
{item.key.includes('map_embed') && ( {item.key.includes('map_embed') && (
<p className="text-xs text-muted-foreground mt-1"> <p className="text-xs text-muted-foreground mt-1">
Google Maps'e gidin {'>'} Paylaş {'>'} Harita yerleştir {'>'} HTML'i kopyala diyerek aldığınız kodu buraya yapıştırın. Google Maps&apos;e gidin {'>'} Paylaş {'>'} Harita yerleştir {'>'} HTML&apos;i kopyala diyerek aldığınız kodu buraya yapıştırın.
(iframe ile başlayan kod olmalı) (iframe ile başlayan kod olmalı)
</p> </p>
)} )}

View File

@@ -51,7 +51,7 @@ export function GalleryForm({ item, afterSave }: GalleryFormProps) {
} else { } else {
toast.error(result.error) toast.error(result.error)
} }
} catch (error) { } catch {
toast.error("Bir hata oluştu") toast.error("Bir hata oluştu")
} finally { } finally {
setLoading(false) setLoading(false)

View File

@@ -1,5 +1,5 @@
import { Separator } from "@/components/ui/separator" import { Separator } from "@/components/ui/separator"
import { LayoutDashboard, FileText, Image, Briefcase } from "lucide-react" import { FileText, Image as ImageIcon, Briefcase } from "lucide-react"
import Link from "next/link" import Link from "next/link"
const sidebarNavItems = [ const sidebarNavItems = [
@@ -16,7 +16,7 @@ const sidebarNavItems = [
{ {
title: "Galeri", title: "Galeri",
href: "/dashboard/cms/gallery", href: "/dashboard/cms/gallery",
icon: <Image className="w-5 h-5 mr-2" />, icon: <ImageIcon className="w-5 h-5 mr-2" />,
}, },
] ]

View File

@@ -47,7 +47,7 @@ export function ServiceForm({ service, afterSave }: ServiceFormProps) {
} else { } else {
toast.error(result.error) toast.error(result.error)
} }
} catch (error) { } catch {
toast.error("Bir hata oluştu") toast.error("Bir hata oluştu")
} finally { } finally {
setLoading(false) setLoading(false)

View File

@@ -3,7 +3,7 @@
import { Service } from "@/types/cms" import { Service } from "@/types/cms"
import { Card, CardContent } from "@/components/ui/card" import { Card, CardContent } from "@/components/ui/card"
import { Button } from "@/components/ui/button" import { Button } from "@/components/ui/button"
import { Plus, Pencil, Trash2, GripVertical } from "lucide-react" import { Plus, Pencil, Trash2 } from "lucide-react"
import { useState } from "react" import { useState } from "react"
import { import {
Dialog, Dialog,