From a1c439eb1ef20e7497b90ca0ddbd5a7b68953e91 Mon Sep 17 00:00:00 2001 From: Hailey Date: Tue, 8 Oct 2024 10:45:39 -0700 Subject: [PATCH] more tweaks --- src/components/forms/SearchInput.tsx | 44 ++++++++++++++++++---------- 1 file changed, 28 insertions(+), 16 deletions(-) diff --git a/src/components/forms/SearchInput.tsx b/src/components/forms/SearchInput.tsx index e57186d76b..13d4029d9c 100644 --- a/src/components/forms/SearchInput.tsx +++ b/src/components/forms/SearchInput.tsx @@ -1,12 +1,11 @@ import React from 'react' -import {TextInput, View} from 'react-native' +import {Pressable, TextInput, View} from 'react-native' import {msg} from '@lingui/macro' import {useLingui} from '@lingui/react' import {HITSLOP_10} from '#/lib/constants' import {isNative} from '#/platform/detection' -import {atoms as a, useTheme} from '#/alf' -import {Button, ButtonIcon} from '#/components/Button' +import {atoms as a, native, useTheme, web} from '#/alf' import * as TextField from '#/components/forms/TextField' import {MagnifyingGlass2_Stroke2_Corner0_Rounded as MagnifyingGlassIcon} from '#/components/icons/MagnifyingGlass2' import {TimesLarge_Stroke2_Corner0_Rounded as X} from '#/components/icons/Times' @@ -44,19 +43,32 @@ export const SearchInput = React.forwardRef( {...rest} /> {value && value.length > 0 && ( - - - + + + )}