-
-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(suite): fix issues with TokenSelect
- Loading branch information
Showing
26 changed files
with
1,198 additions
and
2,025 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
20 changes: 20 additions & 0 deletions
20
packages/product-components/src/components/SelectAssetModal/SearchAsset.tsx
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { Icon, Input } from '@trezor/components'; | ||
|
||
interface SearchAssetProps { | ||
searchPlaceholder: string; | ||
search: string; | ||
setSearch: (value: string) => void; | ||
} | ||
|
||
export const SearchAsset = ({ searchPlaceholder, search, setSearch }: SearchAssetProps) => ( | ||
<Input | ||
placeholder={searchPlaceholder} | ||
value={search} | ||
onChange={event => setSearch(event.target.value)} | ||
autoFocus | ||
onClear={() => setSearch('')} | ||
showClearButton="always" | ||
innerAddon={<Icon name="search" variant="tertiary" size="medium" />} | ||
innerAddonAlign="left" | ||
/> | ||
); |
This file contains 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
Oops, something went wrong.