Skip to content

Commit c49fa5c

Browse files
authored
fix: remove unused useEffect import and rename unused state param in ThreatGlobe3D
1 parent 614b278 commit c49fa5c

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

frontend/components/ThreatGlobe3D.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useRef, useState, useEffect } from 'react';
1+
import React, { useRef, useState } from 'react';
22
import { Canvas, useFrame } from '@react-three/fiber';
33
import { OrbitControls, Sphere, MeshDistortMaterial } from '@react-three/drei';
44
import * as THREE from 'three';
@@ -53,7 +53,7 @@ const AnimatedSphere: React.FC<{ position: [number, number, number]; severity: s
5353
const CentralGlobe: React.FC = () => {
5454
const meshRef = useRef<THREE.Mesh>(null);
5555

56-
useFrame((state) => {
56+
useFrame((_state) => {
5757
if (meshRef.current) {
5858
meshRef.current.rotation.y += 0.002;
5959
}
@@ -81,17 +81,17 @@ const ThreatGlobe3D: React.FC<ThreatGlobe3DProps> = ({ threats }) => {
8181
<ambientLight intensity={0.5} />
8282
<pointLight position={[10, 10, 10]} intensity={1} />
8383
<pointLight position={[-10, -10, -10]} intensity={0.5} />
84-
84+
8585
<CentralGlobe />
86-
86+
8787
{threats.map((threat) => (
8888
<AnimatedSphere
8989
key={threat.id}
9090
position={threat.position}
9191
severity={threat.severity}
9292
/>
9393
))}
94-
94+
9595
<OrbitControls enableZoom={true} enablePan={true} />
9696
</Canvas>
9797
</div>

0 commit comments

Comments
 (0)