File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1- import React , { useEffect } from "react" ;
2- import { Fragment , useState } from "react" ;
1+ import { ToastInterface } from "@/types" ;
32import { Transition } from "@headlessui/react" ;
3+ import { XMarkIcon } from "@heroicons/react/20/solid" ;
44import {
55 CheckCircleIcon ,
66 InformationCircleIcon ,
77 XCircleIcon ,
88} from "@heroicons/react/24/outline" ;
9- import { XMarkIcon } from "@heroicons/react/20/solid" ;
10- import { ToastInterface , ToastVariantType } from "@/types" ;
9+ import React , { Fragment , useEffect , useState } from "react" ;
1110
1211interface Props extends ToastInterface {
1312 onClose : ( ) => void ;
Original file line number Diff line number Diff line change 11import { initializeApp } from "firebase/app" ;
22import { Firestore , getFirestore } from "firebase/firestore" ;
33import { Auth , getAuth } from "firebase/auth" ;
4- import { Analytics , getAnalytics , isSupported } from "firebase/analytics" ;
4+ import { Analytics , getAnalytics } from "firebase/analytics" ;
55
66let auth : Auth | undefined ;
77let db : Firestore | undefined ;
2222
2323 auth = getAuth ( app ) ;
2424 db = getFirestore ( app ) ;
25- if ( typeof window !== "undefined" ) analytics = getAnalytics ( app ) ;
25+ if ( process . env . NODE_ENV === "production" && typeof window !== "undefined" ) {
26+ analytics = getAnalytics ( app ) ;
27+ }
2628} catch ( error ) {
2729 console . log (
2830 Error (
You can’t perform that action at this time.
0 commit comments