-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added default and custom token lists to import (#49)
* Added basic erc20 token list, WIP for nfts and uploading custom tokenlists * importing: added logos to network and tokens * overhauled import token modal to support default token lists * refactored project structure * added importing of custom token lists with a set format * WIP for adding collection list * finished collectible list import * fixed pending txn indicator ui bug * removed comments and added names for networks * added token/collection list reset button
- Loading branch information
1 parent
d7148a8
commit 5ca364d
Showing
36 changed files
with
1,255 additions
and
470 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -7,6 +7,6 @@ export const navDrawer = style([ | |
left: '0', | ||
|
||
width: 'vw', | ||
height: 'vh', | ||
}), | ||
height: 'vh' | ||
}) | ||
]) |
File renamed without changes.
File renamed without changes.
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,6 @@ | ||
import { FilledCheckBox } from '~/components/misc/FilledCheckBox' | ||
import { FilledRoundCheckBox, ROUND_CHECKBOX_SIZE } from '~/components/misc/FilledRoundCheckBox' | ||
import { ButtonWithIcon } from '~/components/misc/ButtonWithIcon' | ||
import { ExternalIcon } from '~/components/misc/ExternalIcon' | ||
|
||
export { FilledCheckBox, FilledRoundCheckBox, ROUND_CHECKBOX_SIZE, ButtonWithIcon, ExternalIcon } |
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,51 @@ | ||
import { Box, Spinner, Text, truncateAddress, useMediaQuery } from '@0xsequence/design-system' | ||
|
||
import NetworkTag from '~/components/network/NetworkTag' | ||
|
||
export default function PendingTxn({ | ||
symbol, | ||
chainId, | ||
to, | ||
amount | ||
}: { | ||
symbol: string | ||
chainId: number | ||
to: string | ||
amount?: string | ||
}) { | ||
const isMobile = useMediaQuery('isMobile') | ||
|
||
return ( | ||
<Box flexDirection="column" width="full" gap="5" paddingTop="7"> | ||
<Text variant="normal" fontWeight="bold" color="text80"> | ||
Pending transactions | ||
</Text> | ||
<Box background="backgroundSecondary" borderRadius="sm" alignItems="center" padding="4" gap="5"> | ||
<Spinner size="md" width="full" /> | ||
|
||
<Box flexDirection="column" gap="1" width="fit"> | ||
<Box flexDirection={isMobile ? 'column' : 'row'} gap="1"> | ||
<Box alignItems="center" gap="1"> | ||
<Text variant="normal" fontWeight="medium" color="text80"> | ||
Sending {Number(amount).toFixed(4)} {symbol} on | ||
</Text> | ||
<NetworkTag chainId={chainId} paddingTop="0" paddingBottom="1" /> | ||
</Box> | ||
<Box alignItems="center" gap="1"> | ||
<Text variant="normal" fontWeight="medium" color="text80"> | ||
to | ||
</Text> | ||
<Text variant="normal" fontWeight="medium" color="text80" style={{ fontFamily: 'monospace' }}> | ||
{truncateAddress(to)} | ||
</Text> | ||
</Box> | ||
</Box> | ||
|
||
<Text variant="normal" fontWeight="medium" color="text50" width="fit"> | ||
Your external wallet will prompt you to confirm the transaction | ||
</Text> | ||
</Box> | ||
</Box> | ||
</Box> | ||
) | ||
} |
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.