Skip to content

Commit

Permalink
fixup! Feat: Example NextJS app with app router #DS-1393
Browse files Browse the repository at this point in the history
  • Loading branch information
curdaj committed Aug 15, 2024
1 parent 1aeeecd commit 8aded1b
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 13 deletions.
2 changes: 1 addition & 1 deletion examples/next-with-app-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
"@types/react-dom": "^18",
"eslint": "^8",
"eslint-config-next": "14.2.5",
"typescript": "^5"
"typescript": "4.7.4"
}
}
4 changes: 3 additions & 1 deletion examples/next-with-app-router/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { ReactNode } from 'react';

export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
children: ReactNode;
}>) {
return (
<html lang="en">
Expand Down
2 changes: 1 addition & 1 deletion examples/next-with-app-router/src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { Heading } from '@lmc-eu/spirit-web-react/src';
import React from 'react';
import './globals.scss';

const Home = () => {
Expand Down
4 changes: 3 additions & 1 deletion examples/next-with-app-router/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"useUnknownInCatchVariables": false,
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
Expand All @@ -19,7 +20,8 @@
],
"paths": {
"@/*": ["./src/*"]
}
},
"forceConsistentCasingInFileNames": true
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
Expand Down
18 changes: 9 additions & 9 deletions examples/next-with-app-router/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2432,7 +2432,7 @@ __metadata:
next: "npm:14.2.3"
react: "npm:^18"
react-dom: "npm:^18"
typescript: "npm:^5"
typescript: "npm:4.7.4"
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -3363,23 +3363,23 @@ __metadata:
languageName: node
linkType: hard

"typescript@npm:^5":
version: 5.5.4
resolution: "typescript@npm:5.5.4"
"typescript@npm:4.7.4":
version: 4.7.4
resolution: "typescript@npm:4.7.4"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 10/1689ccafef894825481fc3d856b4834ba3cc185a9c2878f3c76a9a1ef81af04194849840f3c69e7961e2312771471bb3b460ca92561e1d87599b26c37d0ffb6f
checksum: 10/f056b2313a7df95268ac63dc4ddcb7aed1b7d5a6bbc933d11c3fcd0a77712e16b24bdf4403acc529ade5c27a2a477e25124e899587e8ca3f19685c7ab954c6f3
languageName: node
linkType: hard

"typescript@patch:typescript@npm%3A^5#optional!builtin<compat/typescript>":
version: 5.5.4
resolution: "typescript@patch:typescript@npm%3A5.5.4#optional!builtin<compat/typescript>::version=5.5.4&hash=379a07"
"typescript@patch:typescript@npm%3A4.7.4#optional!builtin<compat/typescript>":
version: 4.7.4
resolution: "typescript@patch:typescript@npm%3A4.7.4#optional!builtin<compat/typescript>::version=4.7.4&hash=65a307"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 10/746fdd0865c5ce4f15e494c57ede03a9e12ede59cfdb40da3a281807853fe63b00ef1c912d7222143499aa82f18b8b472baa1830df8804746d09b55f6cf5b1cc
checksum: 10/cd6f51368ba0f8c458a44ca8b05684e9cda49acbb4e7dcf40c4720cd1534f68c2d139ec6f179bb9996e6fe9d0c7a04846db55a048f51fd2f3c41fbce0a004971
languageName: node
linkType: hard

Expand Down

0 comments on commit 8aded1b

Please sign in to comment.