From 9699a3c138cea094afc6da03ada0cdff5df0f1c1 Mon Sep 17 00:00:00 2001 From: Ariel Costas Guerrero Date: Sun, 12 Oct 2025 20:20:21 +0200 Subject: Fix formatting --- src/frontend/app/components/PullToRefresh.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/frontend/app/components/PullToRefresh.tsx') diff --git a/src/frontend/app/components/PullToRefresh.tsx b/src/frontend/app/components/PullToRefresh.tsx index f8ea590..9def8f5 100644 --- a/src/frontend/app/components/PullToRefresh.tsx +++ b/src/frontend/app/components/PullToRefresh.tsx @@ -99,9 +99,9 @@ export const PullToRefresh: React.FC = ({ const handleTouchEnd = useCallback(async () => { if (!isPulling) return; - + setIsPulling(false); - + if (isActive && y.get() >= threshold && !isRefreshing) { try { await onRefresh(); @@ -109,7 +109,7 @@ export const PullToRefresh: React.FC = ({ console.error('Refresh failed:', error); } } - + // Always reset state setIsActive(false); y.set(0); @@ -144,8 +144,8 @@ export const PullToRefresh: React.FC = ({ className={`refresh-icon-container ${isActive ? 'active' : ''}`} style={{ scale, rotate: isRefreshing ? 0 : rotate }} > - -- cgit v1.3