hata düzeltme
This commit is contained in:
@@ -14,7 +14,7 @@ interface SettingsTabsProps {
|
|||||||
username: string
|
username: string
|
||||||
header: string
|
header: string
|
||||||
} | null
|
} | null
|
||||||
users: any[]
|
users: Record<string, any>[]
|
||||||
contents: SiteContent[]
|
contents: SiteContent[]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import Link from "next/link"
|
import Link from "next/link"
|
||||||
import { getSiteContents } from "@/lib/data"
|
import { getSiteContents } from "@/lib/data"
|
||||||
import { Instagram, Youtube, Facebook } from "lucide-react"
|
import { Instagram, Youtube } from "lucide-react"
|
||||||
import { FaTiktok } from "react-icons/fa"
|
import { FaTiktok } from "react-icons/fa"
|
||||||
|
|
||||||
export async function Footer() {
|
export async function Footer() {
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ export const getSiteContents = cache(async () => {
|
|||||||
const contentMap: Record<string, string> = {}
|
const contentMap: Record<string, string> = {}
|
||||||
|
|
||||||
if (data) {
|
if (data) {
|
||||||
data.forEach((item: any) => {
|
data.forEach((item: { key: string; value: string }) => {
|
||||||
contentMap[item.key] = item.value
|
contentMap[item.key] = item.value
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user