File tree Expand file tree Collapse file tree
packages/widget/src/providers Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ " @stakekit/widget " : patch
3+ ---
4+
5+ feat: initial chain to connect
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ export const RainbowKitProviderWithTheme = ({
3939
4040 const { t, i18n } = useTranslation ( ) ;
4141
42- const { hideAccountAndChainSelector } = useSettings ( ) ;
42+ const { hideAccountAndChainSelector, initialChain } = useSettings ( ) ;
4343
4444 const chainIdsToUse = useMemo (
4545 ( ) => new Set ( connectorChains . map ( ( c ) => c . id ) ) ,
@@ -85,6 +85,7 @@ export const RainbowKitProviderWithTheme = ({
8585 appInfo = { { disclaimer : Disclamer , appName : t ( "shared.stake_kit" ) } }
8686 { ...( hideAccountAndChainSelector && { avatar : null } ) }
8787 showRecentTransactions = { false }
88+ initialChain = { initialChain }
8889 theme = { finalTheme }
8990 hideDisconnect = { hideDisconnect }
9091 dialogRoot = { portalContainer }
Original file line number Diff line number Diff line change 11import type { TokenDto , TransactionFormat } from "@stakekit/api-hooks" ;
22import type { ReactNode } from "react" ;
3- import type { SupportedSKChains } from "../../domain/types/chains" ;
3+ import type {
4+ SupportedSKChainIds ,
5+ SupportedSKChains ,
6+ } from "../../domain/types/chains" ;
47import type { PreferredTokenYieldsPerNetwork } from "../../domain/types/stake" ;
58import type { SKExternalProviders } from "../../domain/types/wallets" ;
69import type { Languages , localResources } from "../../translation" ;
@@ -72,6 +75,7 @@ export type SettingsProps = {
7275 preferredTokenYieldsPerNetwork ?: PreferredTokenYieldsPerNetwork ;
7376 portalContainer ?: HTMLElement ;
7477 tonConnectManifestUrl ?: string ;
78+ initialChain ?: SupportedSKChainIds ;
7579} ;
7680
7781export type SettingsContextType = SettingsProps & VariantProps ;
You can’t perform that action at this time.
0 commit comments