Skip to content

Commit

Permalink
update nextjs to 15 and fix key issue
Browse files Browse the repository at this point in the history
  • Loading branch information
berat committed Nov 21, 2024
1 parent 5396ab5 commit 5533658
Show file tree
Hide file tree
Showing 4 changed files with 261 additions and 86 deletions.
2 changes: 1 addition & 1 deletion components/contents/bookmark.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const BookmarkContent = async () => {
{Object.keys(data).map((key: string) => (
<ul key={key} className="w-full my-4 block">
<h3 className="text-xl mb-2 text-slate-400 tracking-wide">{key}</h3>
<div className={"flex gap-8 flex-wrap"}>
<div className={"flex gap-8 flex-wrap"} key={key} >
{data[key].map((item: BookmarkType) => (
<BookmarkCard key={item.id} data={item} />
))}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"highlight.js": "^11.10.0",
"kbar": "^0.1.0-beta.45",
"moment": "^2.30.1",
"next": "14.2.11",
"next": "^15.0.3",
"react": "^18",
"react-confetti-explosion": "^2.1.2",
"react-dom": "^18",
Expand Down
5 changes: 3 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
],
"allowJs": true,
"skipLibCheck": true,
"strict": false,
"noEmit": true,
"incremental": true,
"module": "esnext",
Expand All @@ -25,7 +24,9 @@
"@/*": [
"./*"
]
}
},
"target": "ES2017",
"strict": false
},
"include": [
"next-env.d.ts",
Expand Down
Loading

0 comments on commit 5533658

Please sign in to comment.