-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: add new type property to assets * feat: add standard assets query and standard assets summary screen * feat: filter out already added assets in the add asset search results * feat: add errors and refactor request/response messaeg schema * feat: allow searching by standard asset name and unit * fix: endless search standard asset loop when there is a next token * feat: add scolling pagination for adding assets * feat: add thunk to send an opt-in transaction * feat: add more asset information to standard asset summary * feat: clear asset list when query is empty * chore: squash * chore: squash
- Loading branch information
1 parent
4518395
commit 28a5d07
Showing
63 changed files
with
2,168 additions
and
587 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
34 changes: 34 additions & 0 deletions
34
src/extension/components/InfoIconTooltip/InfoIconTooltip.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,34 @@ | ||
import { Icon, Tooltip } from '@chakra-ui/react'; | ||
import React, { FC } from 'react'; | ||
import { IoInformationCircleOutline } from 'react-icons/io5'; | ||
|
||
// hooks | ||
import useDefaultTextColor from '@extension/hooks/useDefaultTextColor'; | ||
|
||
interface IProps { | ||
color?: string; | ||
label: string; | ||
} | ||
|
||
const InfoIconTooltip: FC<IProps> = ({ color, label }: IProps) => { | ||
// hooks | ||
const defaultTextColor: string = useDefaultTextColor(); | ||
|
||
return ( | ||
<Tooltip aria-label={label} label={label}> | ||
<span | ||
style={{ | ||
height: '1em', | ||
lineHeight: '1em', | ||
}} | ||
> | ||
<Icon | ||
as={IoInformationCircleOutline} | ||
color={color || defaultTextColor} | ||
/> | ||
</span> | ||
</Tooltip> | ||
); | ||
}; | ||
|
||
export default InfoIconTooltip; |
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 @@ | ||
export { default } from './InfoIconTooltip'; |
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export const DEFAULT_TRANSACTION_INDEXER_LIMIT: number = 20; | ||
export const UPPER_TRANSACTION_INDEXER_LIMIT: number = 100; | ||
export const SEARCH_ASSET_INDEXER_LIMIT: number = 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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
enum AddAssetThunkEnum { | ||
QueryById = 'addAsset/queryById', | ||
AddStandardAsset = 'addAsset/addStandardAsset', | ||
QueryArc200Asset = 'addAsset/queryArc200Asset', | ||
QueryStandardAsset = 'addAsset/queryStandardAsset', | ||
} | ||
|
||
export default AddAssetThunkEnum; |
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.