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:
@@ -6,15 +6,13 @@
|
||||
* provides a visual rule builder form, and supports move up/down reordering.
|
||||
*/
|
||||
|
||||
import { useState, useCallback, useMemo } from 'react'
|
||||
import { useState, useCallback } from 'react'
|
||||
import { toast } from 'sonner'
|
||||
import {
|
||||
Plus,
|
||||
MoreHorizontal,
|
||||
Pencil,
|
||||
Trash2,
|
||||
ArrowUp,
|
||||
ArrowDown,
|
||||
Eye,
|
||||
EyeOff,
|
||||
Shield,
|
||||
@@ -472,11 +470,6 @@ export function FirewallPanel({ tenantId, deviceId, active }: ConfigPanelProps)
|
||||
setPreviewOpen(false)
|
||||
}, [panel])
|
||||
|
||||
const afterApply = useMemo(() => {
|
||||
// When applyChanges succeeds, the hook auto-refetches via queryClient.invalidateQueries
|
||||
return panel.pendingChanges.length
|
||||
}, [panel.pendingChanges.length])
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Render
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user