mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-05-01 19:12:57 +02:00
Clear and reset only the visualizer, not the packet feed
This commit is contained in:
@@ -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
|
||||
<TabsTrigger value="packets">Packet Feed</TabsTrigger>
|
||||
</TabsList>
|
||||
<TabsContent value="visualizer" className="flex-1 m-0 overflow-hidden">
|
||||
<PacketVisualizer3D
|
||||
packets={packets}
|
||||
contacts={contacts}
|
||||
config={config}
|
||||
onClearPackets={onClearPackets}
|
||||
/>
|
||||
<PacketVisualizer3D packets={packets} contacts={contacts} config={config} />
|
||||
</TabsContent>
|
||||
<TabsContent value="packets" className="flex-1 m-0 overflow-hidden">
|
||||
<RawPacketList packets={packets} />
|
||||
@@ -58,7 +52,6 @@ export function VisualizerView({ packets, contacts, config, onClearPackets }: Vi
|
||||
config={config}
|
||||
fullScreen={fullScreen}
|
||||
onFullScreenChange={setFullScreen}
|
||||
onClearPackets={onClearPackets}
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user