fix: Resolve build errors (unescaped quotes, unused vars)
This commit is contained in:
@@ -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'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ı)
|
(iframe ile başlayan kod olmalı)
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
@@ -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" />,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user