refactor(web): move development environment check before useEffect hook in Carbon component

This commit is contained in:
Thomas Camlong
2025-10-01 15:47:01 +02:00
parent 69d0b1f2e5
commit e10008ece5

View File

@@ -1,5 +1,9 @@
import { useEffect, useRef } from "react"
export function Carbon() {
if (process.env.NODE_ENV === "development") {
return null
}
useEffect(() => {
const serve = "CW7IKKQM"
const placement = "dashboardiconscom"
@@ -11,9 +15,6 @@ export function Carbon() {
}, [])
const ref = useRef<HTMLDivElement>(null!)
if (process.env.NODE_ENV === "development") {
return null
}
return (
<>