Skip to content

Commit f885728

Browse files
authored
Merge pull request #3 from jonaphil-nwt/chore-upgrade-next-15
feat: make zebra-utils ready for next15
2 parents 4a57d05 + 949ace7 commit f885728

3 files changed

Lines changed: 1549 additions & 1414 deletions

File tree

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,25 +42,25 @@
4242
"@babel/runtime": "^7.24.7",
4343
"@networkteam/zebra": "^1.0.0",
4444
"@types/node": "^20.14.9",
45-
"@types/react": "^18.3.3",
46-
"@types/react-dom": "^18.3.0",
45+
"@types/react": "^19.0.0",
46+
"@types/react-dom": "^19.0.0",
4747
"@typescript-eslint/eslint-plugin": "^7.14.1",
4848
"@typescript-eslint/parser": "^7.14.1",
4949
"eslint": "^9.5.0",
5050
"eslint-config-prettier": "^9.1.0",
5151
"eslint-plugin-prettier": "^5.1.3",
5252
"eslint-plugin-simple-import-sort": "^12.1.0",
53-
"next": "^14.2.4",
53+
"next": "^15.3.0",
5454
"prettier": "^3.3.2",
55-
"react": "^18.3.1",
56-
"react-dom": "^18.3.1",
55+
"react": "^19.0.0",
56+
"react-dom": "^19.0.0",
5757
"tailwindcss": "^3.4.4",
5858
"typescript": "^5.5.2"
5959
},
6060
"peerDependencies": {
61-
"next": "^14.2.4",
62-
"react": "^18.3.1",
63-
"react-dom": "^18.3.1"
61+
"next": "^15.2.3",
62+
"react": "^19.0.0",
63+
"react-dom": "^19.0.0"
6464
},
6565
"files": [
6666
"src",

src/styleguide/Route.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@ import './styles.css';
66
import { notFound } from 'next/navigation';
77

88
type StyleguidePageProps = {
9-
params: {
9+
params: Promise<{
1010
slug?: string | string[];
11-
};
11+
}>;
1212
};
1313

1414
const Route =
1515
(content: StyleguideContent, path: string = '/styleguide') =>
16-
({ params: { slug } }: StyleguidePageProps) => {
16+
async (props: StyleguidePageProps) => {
17+
const { slug } = await props.params;
1718
if (!process.env.ENABLE_STYLEGUIDE) {
1819
return notFound();
1920
}

0 commit comments

Comments
 (0)