From 564ccbbaf1886205a39a118cbb94ff7adabe62e3 Mon Sep 17 00:00:00 2001 From: vineyardbovines Date: Wed, 22 Apr 2026 10:55:20 -0400 Subject: [PATCH] fix(gifPicker): rewire mobile-web back arrow to return to default view On mobile web the header's arrow button called control.close(), collapsing the dialog entirely and giving users no way to exit search results back to the categories view. Wire it to onGoBack instead, which already clears the search, resets to trending, and only closes the dialog when the user is already at that default state. Addresses PR #10261 feedback from surfdude29: no way back from the search results screen to the default view. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/features/gifPicker/components/GifPickerHeader.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/features/gifPicker/components/GifPickerHeader.tsx b/src/features/gifPicker/components/GifPickerHeader.tsx index af6bcebdd6..32955d6eee 100644 --- a/src/features/gifPicker/components/GifPickerHeader.tsx +++ b/src/features/gifPicker/components/GifPickerHeader.tsx @@ -12,12 +12,12 @@ import {IS_WEB} from '#/env' export function GifPickerHeader({ inputRef, onChangeText, - onClose, + onGoBack, onEscape, }: { inputRef: Ref onChangeText: (text: string) => void - onClose: () => void + onGoBack: () => void onEscape: () => void }) { const {t: l} = useLingui() @@ -40,8 +40,8 @@ export function GifPickerHeader({ size="small" color="secondary" shape="round" - onPress={onClose} - label={l`Close GIF dialog`}> + onPress={onGoBack} + label={l`Go back`}> )}