File tree Expand file tree Collapse file tree 5 files changed +11
-7
lines changed Expand file tree Collapse file tree 5 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 1717// import { getCurrentUser } from "@/lib/firebase/serverApp";
1818import type { Metadata } from "next" ;
1919import { Geist , Geist_Mono } from "next/font/google" ;
20-
20+ import { FirebaseUIProviderHoc } from "../lib/firebase/ui" ;
2121// import { Header } from "@/lib/components/header";
22- import { FirebaseUIProviderWrapper } from "@/lib/firebase/FirebaseUIProviderWrapper" ;
22+
2323import "./globals.css" ;
2424// import { useUser } from "@/lib/firebase/hooks";
2525
@@ -49,7 +49,7 @@ export default async function RootLayout({
4949 < html lang = "en" >
5050 < body className = { `${ geistSans . variable } ${ geistMono . variable } antialiased` } >
5151 { /* <Header currentUser={{null}} /> */ }
52- < FirebaseUIProviderWrapper > { children } </ FirebaseUIProviderWrapper >
52+ < FirebaseUIProviderHoc > { children } </ FirebaseUIProviderHoc >
5353 </ body >
5454 </ html >
5555 ) ;
Original file line number Diff line number Diff line change 11{
22 "name" : " @invertase/firebaseui-core" ,
3- "version" : " 0.0.8 " ,
3+ "version" : " 0.0.10 " ,
44 "description" : " Core authentication service for Firebase UI" ,
55 "type" : " module" ,
66 "main" : " ./dist/index.cjs" ,
Original file line number Diff line number Diff line change @@ -31,7 +31,8 @@ export * from "./translations";
3131const isDevelopment = typeof process !== "undefined" && process . env . NODE_ENV === "production" ;
3232
3333// eslint-disable-next-line @typescript-eslint/no-explicit-any
34- const isViteProduction = ( import . meta as any ) ?. env ?. PROD === true ;
34+ const isViteProduction =
35+ typeof import . meta !== "undefined" && ( import . meta as any ) ?. env && ( import . meta as any ) . env . PROD === true ;
3536
3637// Check if in production mode
3738const isProduction = isDevelopment || isViteProduction ;
Original file line number Diff line number Diff line change 11{
22 "name" : " @invertase/firebaseui-react" ,
3- "version" : " 0.0.7 " ,
3+ "version" : " 0.0.9 " ,
44 "type" : " module" ,
55 "main" : " ./dist/index.cjs" ,
66 "module" : " ./dist/index.js" ,
Original file line number Diff line number Diff line change @@ -28,7 +28,10 @@ export * from "./hooks";
2828const isNodeProduction = typeof process !== "undefined" && process . env . NODE_ENV === "production" ;
2929
3030// eslint-disable-next-line @typescript-eslint/no-explicit-any
31- const isViteProduction = ( import . meta as any ) ?. env ?. PROD === true ;
31+ const isViteProduction =
32+ typeof import . meta !== "undefined" && ( import . meta as any ) ?. env && ( import . meta as any ) . env . PROD === true ;
33+
34+ // Check if in production mode
3235
3336// Check if in production mode
3437const isProduction = isNodeProduction || isViteProduction ;
You can’t perform that action at this time.
0 commit comments