From ca5df49e0c165c516f90b25c6a45786950e33218 Mon Sep 17 00:00:00 2001 From: Arif Hasanic Date: Sun, 12 Jul 2026 11:17:54 +0200 Subject: [PATCH] fix code style --- src/App.tsx | 50 +++++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 5bbe388..f678104 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,37 +1,37 @@ import "@/App.css"; import { - getWebInstrumentations, - initializeFaro, - ReactIntegration, - ConsoleInstrumentation, - WebVitalsInstrumentation, + ConsoleInstrumentation, + getWebInstrumentations, + initializeFaro, + ReactIntegration, + WebVitalsInstrumentation, } from "@grafana/faro-react"; import Dashboard from "@/components/Dashboard/Dashboard"; function App() { - const isProduction = import.meta.env.PROD; + const isProduction = import.meta.env.PROD; - if (window.location.hostname === "localhost" && isProduction) { - initializeFaro({ - url: "http://alloy:8027/collect", - app: { - name: "monitor-im-flur", - version: "0.0.1", - environment: "production", - }, - instrumentations: [ - ...getWebInstrumentations({ - captureConsole: true, - }), - new ConsoleInstrumentation(), - new WebVitalsInstrumentation(), - new ReactIntegration(), - ], - }); - } + if (window.location.hostname === "localhost" && isProduction) { + initializeFaro({ + url: "http://alloy:8027/collect", + app: { + name: "monitor-im-flur", + version: "0.0.1", + environment: "production", + }, + instrumentations: [ + ...getWebInstrumentations({ + captureConsole: true, + }), + new ConsoleInstrumentation(), + new WebVitalsInstrumentation(), + new ReactIntegration(), + ], + }); + } - return ; + return ; } export default App;