Skip to content

Commit

Permalink
fixup! Feat: Example NextJS app with pages router #DS-1393
Browse files Browse the repository at this point in the history
  • Loading branch information
curdaj committed Aug 14, 2024
1 parent aa0f4bf commit 6e3b70c
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 28 deletions.
1 change: 0 additions & 1 deletion examples/spirit-next-pages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
},
"dependencies": {
"next": "14.2.5",
"next-transpile-modules": "^10.0.1",
"react": "^18",
"react-dom": "^18"
},
Expand Down
7 changes: 1 addition & 6 deletions examples/spirit-next-pages/src/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
import type { AppProps } from 'next/app';
import { ClassNamePrefixProvider } from '../../../../packages/web-react/src/context/ClassNamePrefixContext';

const App = ({ Component, pageProps }: AppProps) => {
return (
<ClassNamePrefixProvider value="lol">
<Component {...pageProps} />
</ClassNamePrefixProvider>
);
return <Component {...pageProps} />;
};

export default App;
2 changes: 1 addition & 1 deletion examples/spirit-next-pages/src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Heading } from '@lmc-eu/spirit-web-react/src/components';

const Home = () => {
return <Heading>Spirit-pages-app</Heading>;
return <Heading size="large">Spirit-pages-app</Heading>;
};

export default Home;
20 changes: 0 additions & 20 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13456,16 +13456,6 @@ __metadata:
languageName: node
linkType: hard

"enhanced-resolve@npm:^5.10.0":
version: 5.17.1
resolution: "enhanced-resolve@npm:5.17.1"
dependencies:
graceful-fs: "npm:^4.2.4"
tapable: "npm:^2.2.0"
checksum: 10/e8e03cb7a4bf3c0250a89afbd29e5ec20e90ba5fcd026066232a0754864d7d0a393fa6fc0e5379314a6529165a1834b36731147080714459d98924520410d8f5
languageName: node
linkType: hard

"enquirer@npm:~2.3.6":
version: 2.3.6
resolution: "enquirer@npm:2.3.6"
Expand Down Expand Up @@ -21289,15 +21279,6 @@ __metadata:
languageName: node
linkType: hard

"next-transpile-modules@npm:^10.0.1":
version: 10.0.1
resolution: "next-transpile-modules@npm:10.0.1"
dependencies:
enhanced-resolve: "npm:^5.10.0"
checksum: 10/ba8f8baef3d5657e0cc097f7102cd7acd62e593cdeed5fe77772de75915e3e9e28074a285e2214c652ee025b50fd5592493f384d1fb7bc82523777174e06ce1c
languageName: node
linkType: hard

"next@npm:14.2.5":
version: 14.2.5
resolution: "next@npm:14.2.5"
Expand Down Expand Up @@ -25965,7 +25946,6 @@ __metadata:
eslint: "npm:^8"
eslint-config-next: "npm:14.2.5"
next: "npm:14.2.5"
next-transpile-modules: "npm:^10.0.1"
react: "npm:^18"
react-dom: "npm:^18"
typescript: "npm:^5"
Expand Down

0 comments on commit 6e3b70c

Please sign in to comment.