File tree Expand file tree Collapse file tree 4 files changed +15
-6
lines changed
storybook/.flowbite-react
packages/ui/src/cli/commands Expand file tree Collapse file tree 4 files changed +15
-6
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " flowbite-react " : patch
3
+ ---
4
+
5
+ fix(ui/cli/setup-init): nextjs warning
6
+
7
+ ### Changes
8
+
9
+ - [x] rename ` config ` -> ` CONFIG ` export in ` .flowbite-react/init.(jsx|tsx) `
Original file line number Diff line number Diff line change 9
9
import { StoreInit } from "flowbite-react/store/init" ;
10
10
import React from "react" ;
11
11
12
- export const config = {
12
+ export const CONFIG = {
13
13
dark : true ,
14
14
prefix : "" ,
15
15
version : 3 ,
16
16
} ;
17
17
18
18
export function ThemeInit ( ) {
19
- return < StoreInit { ...config } /> ;
19
+ return < StoreInit { ...CONFIG } /> ;
20
20
}
21
21
22
22
ThemeInit . displayName = "ThemeInit" ;
Original file line number Diff line number Diff line change 9
9
import { StoreInit } from "flowbite-react/store/init" ;
10
10
import React from "react" ;
11
11
12
- export const config = {
12
+ export const CONFIG = {
13
13
dark : true ,
14
14
prefix : "" ,
15
15
version : 3 ,
16
16
} ;
17
17
18
18
export function ThemeInit ( ) {
19
- return < StoreInit { ...config } /> ;
19
+ return < StoreInit { ...CONFIG } /> ;
20
20
}
21
21
22
22
ThemeInit . displayName = "ThemeInit" ;
Original file line number Diff line number Diff line change @@ -24,14 +24,14 @@ export async function setupInit(config: Config) {
24
24
import { StoreInit } from "flowbite-react/store/init";
25
25
import React from "react";
26
26
27
- export const config = {
27
+ export const CONFIG = {
28
28
dark: ${ config . dark } ,
29
29
prefix: "${ config . prefix } ",
30
30
version: ${ config . version } ,
31
31
};
32
32
33
33
export function ThemeInit() {
34
- return <StoreInit {...config } />;
34
+ return <StoreInit {...CONFIG } />;
35
35
}
36
36
37
37
ThemeInit.displayName = "ThemeInit";
You can’t perform that action at this time.
0 commit comments