fix(lint): resolve remaining ESLint errors (unused vars, any types, react-refresh)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -162,7 +162,7 @@ export function ClientsTab({ tenantId, deviceId, active }: ClientsTabProps) {
|
||||
}
|
||||
return sortDir === 'asc' ? cmp : -cmp
|
||||
})
|
||||
}, [data?.clients, searchQuery, sortField, sortDir])
|
||||
}, [data, searchQuery, sortField, sortDir])
|
||||
|
||||
// Stats
|
||||
const totalClients = data?.clients.length ?? 0
|
||||
|
||||
@@ -53,7 +53,7 @@ interface GaugeBarProps {
|
||||
direction: 'RX' | 'TX'
|
||||
}
|
||||
|
||||
function GaugeBar({ label, value, maxSpeed, direction }: GaugeBarProps) {
|
||||
function GaugeBar({ value, maxSpeed, direction }: GaugeBarProps) {
|
||||
const pct = Math.min((value / maxSpeed) * 100, 100)
|
||||
const colorClass = getBarColor(pct)
|
||||
|
||||
|
||||
@@ -149,7 +149,7 @@ interface TooltipData {
|
||||
y: number
|
||||
}
|
||||
|
||||
function NodeTooltip({ data, onClose }: { data: TooltipData; onClose: () => void }) {
|
||||
function NodeTooltip({ data }: { data: TooltipData; onClose?: () => void }) {
|
||||
return (
|
||||
<div
|
||||
className="absolute z-50 rounded-lg border border-border bg-elevated shadow-lg px-3 py-2 text-xs pointer-events-none"
|
||||
|
||||
Reference in New Issue
Block a user