Skip to content

Commit

Permalink
Add missing SearchInput changes
Browse files Browse the repository at this point in the history
  • Loading branch information
christianbaroni committed Jun 11, 2024
1 parent 1ffff4d commit a812c17
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/__swaps__/screens/Swap/components/SearchInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,7 @@ export const SearchInput = ({
};
});

const onInputSearchQueryChange = useDebouncedCallback(
(text: string) => {
userAssetsStore.getState().setSearchQuery(text);
},
50,
{ leading: true, trailing: true }
);
const onInputSearchQueryChange = userAssetsStore(state => state.setSearchQuery);

const onOutputSearchQueryChange = useDebouncedCallback(
(text: string) => {
Expand Down Expand Up @@ -120,7 +114,7 @@ export const SearchInput = ({
);

return (
<Box width="full">
<Box paddingHorizontal="20px" width="full">
<Columns alignHorizontal="justify" alignVertical="center" space="20px">
<Box>
<Bleed horizontal="8px" vertical="24px">
Expand Down

0 comments on commit a812c17

Please sign in to comment.