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 99import { StoreInit } from "flowbite-react/store/init" ;
1010import React from "react" ;
1111
12- export const config = {
12+ export const CONFIG = {
1313 dark : true ,
1414 prefix : "" ,
1515 version : 3 ,
1616} ;
1717
1818export function ThemeInit ( ) {
19- return < StoreInit { ...config } /> ;
19+ return < StoreInit { ...CONFIG } /> ;
2020}
2121
2222ThemeInit . displayName = "ThemeInit" ;
Original file line number Diff line number Diff line change 99import { StoreInit } from "flowbite-react/store/init" ;
1010import React from "react" ;
1111
12- export const config = {
12+ export const CONFIG = {
1313 dark : true ,
1414 prefix : "" ,
1515 version : 3 ,
1616} ;
1717
1818export function ThemeInit ( ) {
19- return < StoreInit { ...config } /> ;
19+ return < StoreInit { ...CONFIG } /> ;
2020}
2121
2222ThemeInit . displayName = "ThemeInit" ;
Original file line number Diff line number Diff line change @@ -24,14 +24,14 @@ export async function setupInit(config: Config) {
2424import { StoreInit } from "flowbite-react/store/init";
2525import React from "react";
2626
27- export const config = {
27+ export const CONFIG = {
2828 dark: ${ config . dark } ,
2929 prefix: "${ config . prefix } ",
3030 version: ${ config . version } ,
3131};
3232
3333export function ThemeInit() {
34- return <StoreInit {...config } />;
34+ return <StoreInit {...CONFIG } />;
3535}
3636
3737ThemeInit.displayName = "ThemeInit";
You can’t perform that action at this time.
0 commit comments