From 256f567207ca32ed88fa51ca8a9203fe4630ac39 Mon Sep 17 00:00:00 2001 From: Thomas Camlong Date: Tue, 22 Apr 2025 20:52:15 +0200 Subject: [PATCH] refactor(web): change carbon tags --- web/src/components/carbon.tsx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/web/src/components/carbon.tsx b/web/src/components/carbon.tsx index 74860bf4..6de1b561 100644 --- a/web/src/components/carbon.tsx +++ b/web/src/components/carbon.tsx @@ -1,15 +1,14 @@ -import React from "react" - +import { useEffect, useRef } from "react" export function Carbon() { // biome-ignore lint/style/noNonNullAssertion: - const ref = React.useRef(null!) + const ref = useRef(null!) if (process.env.NODE_ENV === "development") { return null } - React.useEffect(() => { + useEffect(() => { const serve = "CW7IP27L" - const placement = "homarrdev" + const placement = "dashboardiconscom" ref.current.innerHTML = "" const s = document.createElement("script") s.id = "_carbonads_js" @@ -21,7 +20,6 @@ export function Carbon() { <> -
+