Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

fix(desktop): r5-l1 format AppHeader resize handler

Josué53765527a0b6
diff --git a/desktop-app/ui/src/components/AppHeader/index.tsx b/desktop-app/ui/src/components/AppHeader/index.tsx
index 973485cc4..e1a973a82 100644
--- a/desktop-app/ui/src/components/AppHeader/index.tsx
+++ b/desktop-app/ui/src/components/AppHeader/index.tsx
@@ -143,7 +143,8 @@ export const AppHeader = React.memo(function AppHeader({
}, [])
useEffect(() => {
- const updateCompactSearch = () => setCompactSearch(window.innerWidth <= COMPACT_SEARCH_BREAKPOINT)
+ const updateCompactSearch = () =>
+ setCompactSearch(window.innerWidth <= COMPACT_SEARCH_BREAKPOINT)
window.addEventListener('resize', updateCompactSearch)
return () => window.removeEventListener('resize', updateCompactSearch)
}, [])