refactor: extract token search input and button#7093
Merged
Conversation
Contributor
Author
047d376 to
eb555ab
Compare
eb555ab to
aadcd11
Compare
aadcd11 to
8af25b3
Compare
This was referenced Feb 6, 2026
8af25b3 to
f522b25
Compare
fac61c9 to
99d66fd
Compare
f522b25 to
c7c4643
Compare
e1cd85d to
bf0335c
Compare
14baf6a to
a25cc22
Compare
a25cc22 to
e965854
Compare
bf0335c to
ca32478
Compare
|
🧪 Flashlight Performance Report (AWS Device Farm) 🔀 Commit: 6c95391
|
ca32478 to
85ced13
Compare
e965854 to
0f052a9
Compare
85ced13 to
9914c1c
Compare
0f052a9 to
60cb700
Compare
9914c1c to
f3aba07
Compare
60cb700 to
f21c6b5
Compare
f3aba07 to
ef30149
Compare
ef30149 to
c6e2bde
Compare
f21c6b5 to
d725ca7
Compare
c6e2bde to
485c252
Compare
d725ca7 to
0ef99de
Compare
485c252 to
7b2c046
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

TL;DR
This is a refactor for reuse in upcoming token selectors (Perps/Polymarket) with no intended behavior change.
Refactored the SearchInput component to create a reusable base component that can be used across the app.
What changed (plus any additional context for devs)
src/components/token-search/SearchInput.tsx.SearchInputButtoninto shared token-search components and added explicit typing for animated style props.src/components/token-search/constants.tsandsrc/components/token-search/styles.ts.NAVBAR_HEIGHT_WITH_PADDINGtosrc/components/navbar/constants.tsand updated swap token-list/layout usage.getDefaultKeyboardHeighttosrc/utils/keyboardHeight.tsand reused it in swaps + Dapp Browser search context.handleExitSearchWorklet=> onCancelOrClosePressWorkletandhandleFocusSearchWorklet => onSearchFocusWorkletto better reflect what they are doing.Screen recordings / screenshots
N/A (refactor-only; no intended UI change).