You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ae04e6c
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: src/components/sharedComponents/TokenDropdown.tsx
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -28,8 +28,9 @@ type Props = ComponentPropsWithoutRef<'span'> & TokenDropdownProps
28
28
* @param {string} [props.placeholder] - Placeholder text for the search input.
29
29
* @param {number} [props.containerHeight] - Height of the virtualized tokens list.
30
30
* @param {number} [props.itemHeight] - Height of each item in the tokens list.
31
-
* @param {boolean} [props.showBalance] - Whether to show the token balance in the list.
31
+
* @param {boolean} [props.showBalance] - Whether to show the token balance column in each row.
32
32
* @param {boolean} [props.showTopTokens] - Whether to show the top tokens section in the list.
33
+
* @param {boolean} [props.sortByBalance] - Sort tokens with a positive balance to the top, ordered by USD value descending. Defaults to true when a wallet is connected.
33
34
* @param {ComponentPropsWithoutRef<'span'>} props.restProps - Additional props for the span element.
Copy file name to clipboardExpand all lines: src/components/sharedComponents/TokenInput/index.tsx
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -58,8 +58,9 @@ type Props = FlexProps & TokenInputProps
58
58
* @param {number} [props.iconSize=32] - Optional size of the token icon in the list. Default is 32.
59
59
* @param {number} [props.itemHeight=64] - Optional height of each item in the list. Default is 64.
60
60
* @param {boolean} [props.showAddTokenButton=false] - Optional flag to allow adding a token. Default is false.
61
-
* @param {boolean} [props.showBalance=false] - Optional flag to show the token balance in the list. Default is false.
61
+
* @param {boolean} [props.showBalance=false] - Optional flag to show the token balance column in each row. Default is false.
62
62
* @param {boolean} [props.showTopTokens=false] - Optional flag to show the top tokens in the list. Default is false.
63
+
* @param {boolean} [props.sortByBalance] - Sort tokens with a positive balance to the top, ordered by USD value descending. Defaults to true when a wallet is connected.
@@ -42,8 +43,9 @@ type Props = FlexProps & TokenSelectProps
42
43
* @param {number} [props.iconSize=32] - Optional size of the token icon in the list. Default is 32.
43
44
* @param {number} [props.itemHeight=64] - Optional height of each item in the list. Default is 64.
44
45
* @param {boolean} [props.showAddTokenButton=false] - Optional flag to allow adding a token. Default is false.
45
-
* @param {boolean} [props.showBalance=false] - Optional flag to show the token balance in the list. Default is false.
46
+
* @param {boolean} [props.showBalance=false] - Optional flag to show the token balance column in each row. Default is false.
46
47
* @param {boolean} [props.showTopTokens=false] - Optional flag to show the top tokens in the list. Default is false.
48
+
* @param {boolean} [props.sortByBalance] - Sort tokens with a positive balance to the top, ordered by USD value descending. Defaults to true when a wallet is connected.
0 commit comments