File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
test/integration/next/pages Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ function readColorSchemeInCookie(cookie: string) {
92
92
}
93
93
94
94
export type NextDsfrIntegrationApi = {
95
- withAppDsfr : < AppComponent extends NextComponentType < any , any , any > > (
95
+ withDsfr : < AppComponent extends NextComponentType < any , any , any > > (
96
96
App : AppComponent
97
97
) => AppComponent ;
98
98
dsfrDocumentApi : {
@@ -130,7 +130,7 @@ export function createNextDsfrIntegrationApi(params: Params): NextDsfrIntegratio
130
130
131
131
const colorSchemeKey = "dsfrColorScheme" ;
132
132
133
- function withAppDsfr < AppComponent extends NextComponentType < any , any , any > > (
133
+ function withDsfr < AppComponent extends NextComponentType < any , any , any > > (
134
134
App : AppComponent
135
135
) : AppComponent {
136
136
function AppWithDsfr ( {
@@ -296,7 +296,7 @@ export function createNextDsfrIntegrationApi(params: Params): NextDsfrIntegratio
296
296
}
297
297
298
298
return {
299
- withAppDsfr ,
299
+ withDsfr ,
300
300
"dsfrDocumentApi" : {
301
301
augmentDocumentByReadingColorSchemeFromCookie,
302
302
getColorSchemeHtmlAttributes
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import "@codegouvfr/react-dsfr/dsfr/dsfr.css";
4
4
import "@codegouvfr/react-dsfr/dsfr/utility/icons/icons.css" ;
5
5
6
6
const {
7
- withAppDsfr ,
7
+ withDsfr ,
8
8
dsfrDocumentApi
9
9
} = createNextDsfrIntegrationApi ( {
10
10
"defaultColorScheme" : "system" ,
@@ -25,4 +25,4 @@ const {
25
25
26
26
export { dsfrDocumentApi } ;
27
27
28
- export default withAppDsfr ( DefaultApp ) ;
28
+ export default withDsfr ( DefaultApp ) ;
You can’t perform that action at this time.
0 commit comments