Skip to content

Commit e38d859

Browse files
committed
Remove dependency to tss-react in test next app
1 parent 7c48bf5 commit e38d859

File tree

4 files changed

+11
-402
lines changed

4 files changed

+11
-402
lines changed

src/test/frameworks/next/package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,10 @@
99
"lint": "next lint"
1010
},
1111
"dependencies": {
12-
"@emotion/react": "11.10.4",
13-
"@emotion/server": "11.4.0",
1412
"next": "12.3.1",
1513
"react": "18.2.0",
1614
"react-dom": "^18.2.0",
17-
"dsfr-react": "file:../../../../dist",
18-
"tss-react": "^4.1.3"
15+
"dsfr-react": "file:../../../../dist"
1916
},
2017
"devDependencies": {
2118
"@types/react": "18.0.21",

src/test/frameworks/next/pages/_app.tsx

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,10 @@
1-
import Head from "next/head";
2-
import type { AppProps } from 'next/app'
3-
import { createEmotionSsrAdvancedApproach } from "tss-react/nextJs";
1+
import DefaultApp from "next/app";
42
import "dsfr-react/dsfr/dsfr.css";
53
import { withDsfr } from "dsfr-react/lib/nextJs";
64

7-
const { EmotionCacheProvider, withEmotionCache } = createEmotionSsrAdvancedApproach({ "key": "css" });
8-
9-
export { withEmotionCache };
10-
11-
export function App({ Component, pageProps }: AppProps) {
12-
return (
13-
<>
14-
<Head>
15-
<title>Next DSFR!</title>
16-
<meta name="description" content="Generated by create next app" />
17-
</Head>
18-
<EmotionCacheProvider>
19-
<Component {...pageProps} />
20-
</EmotionCacheProvider>
21-
</>
22-
);
23-
}
245

256
//export default withDsfr(DefaultApp);
26-
export default withDsfr(App, {
7+
export default withDsfr(DefaultApp, {
278
"defaultColorScheme": "system",
289
"preloadFonts": [
2910
//"Marianne-Light",

src/test/frameworks/next/pages/_document.tsx

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)