-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add: lazy loading modal solana selector #98
Merged
Merged
Changes from 7 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
9395c69
add: lazy loading modal solana selector
LukassF 5678d3c
add: fetch all wallets and change type
LukassF 5bab9f5
fix: version
LukassF bb51fc0
add: solana change event listener and emitter
LukassF bba5a77
fix: listeners
LukassF f26cbb6
Merge branch 'main' into solana_selector_lazy
LukassF bd6a67e
fix; pull main
LukassF de1f563
fix: decoupling types
LukassF 11fce53
fix: partial and moved getSolanaWalletsList method to dedicated file
LukassF e012fc4
fix: remove partial
LukassF ae9b42a
remove redundant imports
LukassF 7cff49a
add: showing error in modal
LukassF cdd47df
add: polkadot event emitter
LukassF 6f25b32
fix type on connect emit
NorbertBodziony dad6ed4
fix hooks on connect
NorbertBodziony 492aeb3
fix: modal display error
LukassF d7ecc4c
fix: linter errors
LukassF 01004bd
fix: hooks in solana selector
LukassF 532d76c
Merge branch 'main' into solana_selector_lazy
LukassF 3024c96
fix: reject rather than throw error
LukassF 0790def
remove: console log
LukassF cf5764e
add: external modal for solana
LukassF 3bb97c4
fix: added listener to the newly created app when disconnecting
LukassF 44295fb
fix: update wallets list on disconnect
LukassF 262958d
add try catch and remove filter on modal
NorbertBodziony d4c6d5b
fix solana
NorbertBodziony 8953340
add try catch blocks
LukassF 299798c
fix: polkadot detection
LukassF 64474f3
fix: polkadot detection v2
LukassF File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,23 @@ | ||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. | ||
import type { Deeplink } from "./Deeplink"; | ||
import type { Images } from "./Images"; | ||
import type { Network } from "./Network"; | ||
import type { Platform } from "./Platform"; | ||
import type { Version } from "./Version"; | ||
import type { WalletType } from "./WalletType"; | ||
import type { Deeplink } from './Deeplink' | ||
import type { Images } from './Images' | ||
import type { Network } from './Network' | ||
import type { Platform } from './Platform' | ||
import type { Version } from './Version' | ||
import type { WalletType } from './WalletType' | ||
|
||
export interface WalletMetadata { slug: string, name: string, description: string, homepage: string, chains: Array<Network>, version: Version, walletType: WalletType, mobile: Deeplink | null, desktop: Deeplink | null, image: Images, app: Record<Platform, string>, injectPath: Record<Network, string>, lastUpdatedTimestamp: bigint, } | ||
export interface WalletMetadata { | ||
slug: string | ||
name: string | ||
description?: string | ||
homepage?: string | ||
chains?: Array<Network> | ||
version?: Version | ||
walletType: WalletType | ||
mobile: Deeplink | null | ||
desktop: Deeplink | null | ||
image: Images | ||
app?: Record<Platform, string> | ||
injectPath?: Record<Network, string> | ||
lastUpdatedTimestamp?: bigint | ||
} |
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 |
---|---|---|
|
@@ -39,4 +39,4 @@ | |
"tslib": "^2.5.3", | ||
"typescript": "^5.1.3" | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -40,4 +40,4 @@ | |
"tslib": "^2.5.3", | ||
"typescript": "^5.1.3" | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -43,12 +43,7 @@ export const getPolkadotWalletsList = (presetList: WalletMetadata[], recentWalle | |
|
||
presetList.forEach((wallet) => { | ||
walletsData[wallet.slug.toLocaleLowerCase()] = { | ||
slug: wallet.slug, | ||
name: wallet.name, | ||
icon: wallet.image.default, | ||
deeplink: wallet.mobile, | ||
link: wallet.homepage, | ||
walletType: wallet.walletType, | ||
...wallet, | ||
recent: recentWalletName === wallet.name | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is recent part of api ? |
||
} | ||
}) | ||
|
@@ -91,9 +86,14 @@ export const getPolkadotWalletsList = (presetList: WalletMetadata[], recentWalle | |
walletsData[wallet.name.toLocaleLowerCase()] = { | ||
slug: wallet.name, | ||
name: wallet.name, | ||
icon: wallet.icon as string, | ||
link: '', | ||
deeplink: null, | ||
image: { | ||
default: wallet.icon as string, | ||
sm: wallet.icon as string, | ||
md: wallet.icon as string, | ||
lg: wallet.icon as string | ||
}, | ||
desktop: null, | ||
mobile: null, | ||
recent: recentWalletName === wallet.name, | ||
detected: true, | ||
injectedWallet: wallet, | ||
|
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need as also
why us
IWalletListItem