Skip to content

Commit

Permalink
Upgrade to Next.js 13 (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
sid-kap committed Oct 4, 2023
1 parent 8709357 commit e58311f
Show file tree
Hide file tree
Showing 3 changed files with 145 additions and 125 deletions.
17 changes: 9 additions & 8 deletions lib/common_elements.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ function HideableNav({ logo, items, currentIndex }) {
}

const children = items.map((item, index) => (
<Link href={item.url} key={item.url}>
<a className={classes[index]}>{item.name}</a>
<Link href={item.url} key={item.url} className={classes[index]}>
{item.name}
</Link>
))

Expand Down Expand Up @@ -115,12 +115,13 @@ function HideableNav({ logo, items, currentIndex }) {
}

const logo = (
<Link href="https://housingdata.app">
<a className="py-1 px-2 font-semibold text-xl tracking-tight">
<span className="text-blue-600">housing</span>
<span className="text-green-600">data</span>
<span className="text-gray-600">.app</span>
</a>
<Link
href="https://housingdata.app"
className="py-1 px-2 font-semibold text-xl tracking-tight"
>
<span className="text-blue-600">housing</span>
<span className="text-green-600">data</span>
<span className="text-gray-600">.app</span>
</Link>
)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"@react-hook/media-query": "^1.1.1",
"fuzzysort": "^2.0.1",
"immutable": "^4.0.0",
"next": "12.2.5",
"next": "13.5.4",
"react": "^18.2.0",
"react-container-dimensions": "^1.4.1",
"react-dom": "18.2.0",
Expand Down
Loading

1 comment on commit e58311f

@vercel
Copy link

@vercel vercel bot commented on e58311f Oct 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.