Skip to content

Commit

Permalink
Upgrade NextJS to v13
Browse files Browse the repository at this point in the history
  • Loading branch information
nburka committed Jan 2, 2024
1 parent 25fde8e commit 9612202
Show file tree
Hide file tree
Showing 5 changed files with 1,274 additions and 1,146 deletions.
5 changes: 4 additions & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
/// <reference types="next" />
/// <reference types="next/types/global" />
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@
"@reduxjs/toolkit": "^1.6.0",
"classnames": "^2.3.1",
"downshift": "^6.1.3",
"eslint-config-next": "13",
"figma-js": "^1.13.0",
"next": "^10.0.0",
"react": "17.0.1",
"react-dom": "17.0.1",
"next": "13",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-lazy-load-image-component": "^1.5.1",
"react-modal": "^3.13.1",
"react-redux": "^7.2.4",
Expand Down Expand Up @@ -68,7 +69,7 @@
"text-to-svg": "^3.1.5",
"ts-jest": "^27.0.2",
"ts-node-dev": "^1.1.6",
"typescript": "^4.2.4"
"typescript": "^4.5.2"
},
"jest-junit": {
"suiteName": "health-icons",
Expand Down
10 changes: 5 additions & 5 deletions src/components/TopBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,22 @@ export function TopBar() {
<nav className={styles.topBar}>
<div className={styles.topbarTitle}>
<Link href="/">
<a className={styles.title}>Health icons</a>
<span className={styles.title}>Health icons</span>
</Link>
</div>
<ul className={styles.topbarLinks}>
<li>
<Link href="/about">
<a className={styles.link}>
<span className={styles.link}>
<img src="/ui/information-line.svg" alt="" /> About
</a>
</span>
</Link>
</li>
<li>
<Link href="/request-icon">
<a className={styles.link}>
<span className={styles.link}>
<img src="/ui/question-line.svg" alt="" /> Request an icon
</a>
</span>
</Link>
</li>
<li>
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve"
"jsx": "preserve",
"incremental": true
},
"include": [
"next-env.d.ts",
Expand Down
Loading

0 comments on commit 9612202

Please sign in to comment.