mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 09:31:20 -04:00
build with new analytics stuffs
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
// Main Application Shell
|
||||
// Purpose: Composes the primary rover control interface and page-level layout. Scope: Orchestrates high-level panels, overlays, and feature modules for the default route.
|
||||
import DriverAnalytics from './components/DriverAnalytics/index.jsx';
|
||||
import { useCallback, useEffect, useMemo, useState } from 'react';
|
||||
import TelemetryPanel from './components/TelemetryPanel/index.jsx';
|
||||
import PiHostStatsCard from './components/PiHostStatsCard/index.jsx';
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
import { useEffect } from 'react';
|
||||
import config from '../../config/driverAnalytics.json';
|
||||
|
||||
export default function DriverAnalytics() {
|
||||
useEffect(() => {
|
||||
if (!config.enabled) return;
|
||||
|
||||
document.head.append(
|
||||
document
|
||||
.createRange()
|
||||
.createContextualFragment(config.tags.join('\n'))
|
||||
);
|
||||
}, []);
|
||||
|
||||
return null;
|
||||
}
|
||||
Reference in New Issue
Block a user