From ba1926b8b0da81f146129f81a09934c0ee2bdd3c Mon Sep 17 00:00:00 2001 From: vineyardbovines Date: Tue, 14 Apr 2026 14:16:05 -0400 Subject: [PATCH] feat(gif): add useGifAutocomplete orchestration hook Co-Authored-By: Claude Sonnet 4.6 --- src/features/gifPicker/hooks/useGifAutocomplete.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/features/gifPicker/hooks/useGifAutocomplete.ts b/src/features/gifPicker/hooks/useGifAutocomplete.ts index c94551b418..0ee217cb34 100644 --- a/src/features/gifPicker/hooks/useGifAutocomplete.ts +++ b/src/features/gifPicker/hooks/useGifAutocomplete.ts @@ -1,7 +1,7 @@ import {useRef, useState} from 'react' -import {useThrottledValue} from '#/components/hooks/useThrottledValue' import {useKlipyAutocompleteQuery} from '#/state/queries/klipy' +import {useThrottledValue} from '#/components/hooks/useThrottledValue' import {useAnalytics} from '#/analytics' import {IS_WEB} from '#/env' @@ -77,9 +77,7 @@ export function useGifAutocomplete({ return true } case 'ArrowUp': { - setActiveIndex(i => - i <= 0 ? suggestions.length - 1 : i - 1, - ) + setActiveIndex(i => (i <= 0 ? suggestions.length - 1 : i - 1)) return true } case 'Enter': {