fix: Resolve build errors (unescaped quotes, unused vars)
This commit is contained in:
@@ -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') && (
|
||||
<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'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ı)
|
||||
</p>
|
||||
)}
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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: <Image className="w-5 h-5 mr-2" />,
|
||||
icon: <ImageIcon className="w-5 h-5 mr-2" />,
|
||||
},
|
||||
]
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user