-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Enhance search input with reset functionality and improve styles for balance component * Update token inspector to version 0.2.0 and refactor token inspection methods * Refactor SearchInput component to use forwardRef and improve styling; add new SearchInput module styles * Update token inspector to version 0.2.1 and refactor initialization logic; improve token icon handling in TokenItem component * Update token inspector to version 0.2.3; refactor token handling in Balance and TransferConvertToken components * Fix token handling logic in Balance component; update conditions for newToToken and toToken checks * Update orai-token-inspector to version 0.2.5; implement temporary disablement of BTC functionality across multiple components * fix bridge inj * Remove debug log from loadEvmAmounts function; add early return condition in onClickToken handler * Fix token handling in Balance component; reset toTokens when setting foundTokens * Update orai-token-inspector to version 0.2.7 in package.json and yarn.lock --------- Co-authored-by: vuonghuuhung <[email protected]> Co-authored-by: Hau Nguyen Van <[email protected]>
- Loading branch information
1 parent
47cc015
commit 53b8f85
Showing
23 changed files
with
437 additions
and
244 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
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
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,47 @@ | ||
@import 'src/styles/mixins'; | ||
|
||
.search { | ||
width: 420px; | ||
height: 48px; | ||
border-radius: 24px; | ||
padding: 12px 16px; | ||
font-weight: 500; | ||
font-size: 16px; | ||
|
||
@include theme() { | ||
background-color: theme-get('neutral-surface-bg-section'); | ||
color: theme-get('neutral-text-body'); | ||
border-color: theme-get('border-color'); | ||
} | ||
|
||
@media (max-width: 575px) { | ||
font-size: 15px; | ||
width: 100%; | ||
} | ||
|
||
&::placeholder { | ||
@include theme() { | ||
color: theme-get('text-color-placeholder'); | ||
} | ||
} | ||
} | ||
|
||
.universalSearch { | ||
width: 100%; | ||
border-radius: 18px; | ||
padding: 12px 16px; | ||
font-weight: 500; | ||
font-size: 16px; | ||
border: 1px solid; | ||
|
||
@include theme() { | ||
background-color: theme-get('neutral-6'); | ||
color: theme-get('text-color'); | ||
border-color: theme-get('neutral-5'); | ||
} | ||
|
||
@media (max-width: 575px) { | ||
font-size: 15px; | ||
width: 100%; | ||
} | ||
} |
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,31 @@ | ||
import SearchLightSvg from 'assets/images/search-light-svg.svg'; | ||
import SearchSvg from 'assets/images/search-svg.svg'; | ||
import classNames from 'classnames'; | ||
import { forwardRef } from 'react'; | ||
import Input, { InputProps } from 'components/Input'; | ||
import styles from './SearchInput.module.scss'; | ||
|
||
const Search = forwardRef<HTMLInputElement, InputProps>(({ className, isBorder, theme, style, ...props }, ref) => { | ||
const bgUrl = theme === 'light' ? SearchLightSvg : SearchSvg; | ||
|
||
return ( | ||
<Input | ||
ref={ref} | ||
className={classNames(className, isBorder ? styles.universalSearch : styles.search)} | ||
placeholder="Search by pools or tokens name" | ||
style={{ | ||
paddingLeft: 40, | ||
paddingRight: 45, | ||
textOverflow: 'ellipsis', | ||
overflow: 'hidden', | ||
backgroundImage: `url(${bgUrl})`, | ||
backgroundRepeat: 'no-repeat', | ||
backgroundPosition: '10px center', | ||
...style | ||
}} | ||
{...props} | ||
/> | ||
); | ||
}); | ||
|
||
export default Search; |
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
Oops, something went wrong.