mirror of
https://github.com/dergigi/boris.git
synced 2026-02-01 13:14:21 +01:00
fix: resolve all linting errors and type issues
- Remove unused setShowOfflineIndicator calls - Remove unused areAllRelaysLocal import - Fix duplicate key 'failedRelays' in console.log - Replace 'any' types with proper HighlightEvent interface - Add eslint-disable comments for intentionally excluded useEffect dependencies - All linting errors resolved, type checks pass
This commit is contained in:
@@ -140,8 +140,6 @@ export const HighlightItem: React.FC<HighlightItemProps> = ({
|
||||
setIsSyncing(syncingState)
|
||||
// When sync completes successfully, update highlight to show all relays
|
||||
if (!syncingState) {
|
||||
setShowOfflineIndicator(false)
|
||||
|
||||
// Update the highlight with all relays after successful sync
|
||||
if (onHighlightUpdate && highlight.isLocalOnly && relayPool) {
|
||||
const updatedHighlight = {
|
||||
@@ -285,9 +283,6 @@ export const HighlightItem: React.FC<HighlightItemProps> = ({
|
||||
onHighlightUpdate(updatedHighlight)
|
||||
}
|
||||
|
||||
// Update local state
|
||||
setShowOfflineIndicator(false)
|
||||
|
||||
} catch (error) {
|
||||
console.error('❌ Failed to rebroadcast:', error)
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user