diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index de7c38b..10795da 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -543,12 +543,7 @@ export function App() { } > - setRawPackets([])} - /> + ) : activeConversation.type === 'raw' ? ( <> diff --git a/frontend/src/components/PacketVisualizer3D.tsx b/frontend/src/components/PacketVisualizer3D.tsx index af09276..f35f3bc 100644 --- a/frontend/src/components/PacketVisualizer3D.tsx +++ b/frontend/src/components/PacketVisualizer3D.tsx @@ -859,7 +859,6 @@ interface PacketVisualizer3DProps { config: RadioConfig | null; fullScreen?: boolean; onFullScreenChange?: (fullScreen: boolean) => void; - onClearPackets?: () => void; } export function PacketVisualizer3D({ @@ -868,7 +867,6 @@ export function PacketVisualizer3D({ config, fullScreen, onFullScreenChange, - onClearPackets, }: PacketVisualizer3DProps) { const containerRef = useRef(null); const rendererRef = useRef(null); @@ -1641,21 +1639,23 @@ export function PacketVisualizer3D({ Oooh Big Stretch! )} -
+
{onFullScreenChange && ( diff --git a/frontend/src/components/VisualizerView.tsx b/frontend/src/components/VisualizerView.tsx index ef79562..2b7d90e 100644 --- a/frontend/src/components/VisualizerView.tsx +++ b/frontend/src/components/VisualizerView.tsx @@ -9,10 +9,9 @@ interface VisualizerViewProps { packets: RawPacket[]; contacts: Contact[]; config: RadioConfig | null; - onClearPackets?: () => void; } -export function VisualizerView({ packets, contacts, config, onClearPackets }: VisualizerViewProps) { +export function VisualizerView({ packets, contacts, config }: VisualizerViewProps) { const [fullScreen, setFullScreen] = useState(false); return ( @@ -30,12 +29,7 @@ export function VisualizerView({ packets, contacts, config, onClearPackets }: Vi Packet Feed - + @@ -58,7 +52,6 @@ export function VisualizerView({ packets, contacts, config, onClearPackets }: Vi config={config} fullScreen={fullScreen} onFullScreenChange={setFullScreen} - onClearPackets={onClearPackets} />