diff --git a/src/app/dashboard/cms/content/content-form.tsx b/src/app/dashboard/cms/content/content-form.tsx index 852acef..2494c88 100644 --- a/src/app/dashboard/cms/content/content-form.tsx +++ b/src/app/dashboard/cms/content/content-form.tsx @@ -43,7 +43,7 @@ export function ContentForm({ initialContent }: ContentFormProps) { } else { toast.error(result.error) } - } catch (error) { + } catch { toast.error("Bir hata oluştu") } finally { setLoading(false) @@ -109,7 +109,7 @@ export function ContentForm({ initialContent }: ContentFormProps) { )} {item.key.includes('map_embed') && (

- Google Maps'e gidin {'>'} Paylaş {'>'} Harita yerleştir {'>'} HTML'i kopyala diyerek aldığınız kodu buraya yapıştırın. + Google Maps'e gidin {'>'} Paylaş {'>'} Harita yerleştir {'>'} HTML'i kopyala diyerek aldığınız kodu buraya yapıştırın. (iframe ile başlayan kod olmalı)

)} diff --git a/src/app/dashboard/cms/gallery/gallery-form.tsx b/src/app/dashboard/cms/gallery/gallery-form.tsx index ece7864..c3679bf 100644 --- a/src/app/dashboard/cms/gallery/gallery-form.tsx +++ b/src/app/dashboard/cms/gallery/gallery-form.tsx @@ -51,7 +51,7 @@ export function GalleryForm({ item, afterSave }: GalleryFormProps) { } else { toast.error(result.error) } - } catch (error) { + } catch { toast.error("Bir hata oluştu") } finally { setLoading(false) diff --git a/src/app/dashboard/cms/layout.tsx b/src/app/dashboard/cms/layout.tsx index 25485d7..f4fbec1 100644 --- a/src/app/dashboard/cms/layout.tsx +++ b/src/app/dashboard/cms/layout.tsx @@ -1,5 +1,5 @@ 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" const sidebarNavItems = [ @@ -16,7 +16,7 @@ const sidebarNavItems = [ { title: "Galeri", href: "/dashboard/cms/gallery", - icon: , + icon: , }, ] diff --git a/src/app/dashboard/cms/services/service-form.tsx b/src/app/dashboard/cms/services/service-form.tsx index eb4c314..49824a6 100644 --- a/src/app/dashboard/cms/services/service-form.tsx +++ b/src/app/dashboard/cms/services/service-form.tsx @@ -47,7 +47,7 @@ export function ServiceForm({ service, afterSave }: ServiceFormProps) { } else { toast.error(result.error) } - } catch (error) { + } catch { toast.error("Bir hata oluştu") } finally { setLoading(false) diff --git a/src/app/dashboard/cms/services/service-list.tsx b/src/app/dashboard/cms/services/service-list.tsx index d509f82..3ebbd42 100644 --- a/src/app/dashboard/cms/services/service-list.tsx +++ b/src/app/dashboard/cms/services/service-list.tsx @@ -3,7 +3,7 @@ import { Service } from "@/types/cms" import { Card, CardContent } from "@/components/ui/card" 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 { Dialog,