Skip to content

Commit

Permalink
fix: bloom desktop-only behavior (#2169)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSinclair authored Aug 31, 2024
1 parent 705749c commit 2dda603
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 45 deletions.
14 changes: 0 additions & 14 deletions packages/rainbowkit/src/locales/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -340,20 +340,6 @@
"description": "After you have a wallet, click on Connect to connect via Bloom. A connection prompt in the app will appear for you to confirm the connection.",
"title": "Click on Connect"
}
},
"qr_code": {
"step1": {
"title": "Open the Bloom Wallet app",
"description": "We recommend putting Bloom Wallet on your home screen for quicker access."
},
"step2": {
"description": "Create or import a wallet using your recovery phrase.",
"title": "Create or Import a Wallet"
},
"step3": {
"description": "After you have a wallet, click on Connect to connect via Bloom. A connection prompt in the app will appear for you to confirm the connection.",
"title": "Click on Connect"
}
}
},

Expand Down
Original file line number Diff line number Diff line change
@@ -1,48 +1,18 @@
import { isMobile } from '../../../utils/isMobile';
import { DefaultWalletOptions, Wallet } from '../../Wallet';
import { getWalletConnectConnector } from '../../getWalletConnectConnector';

export const bloomWallet = ({
projectId,
walletConnectParameters,
}: DefaultWalletOptions): Wallet => ({
id: 'bloomWallet',
id: 'bloom',
name: 'Bloom Wallet',
iconBackground: '#000',
iconAccent: '#000',
hidden: () => isMobile(),
iconUrl: async () => (await import('./bloomWallet.svg')).default,
downloadUrls: {
qrCode: 'https://bloomwallet.io/',
windows: 'https://bloomwallet.io/',
macos: 'https://bloomwallet.io/',
linux: 'https://bloomwallet.io/',
desktop: 'https://bloomwallet.io/',
},
qrCode: {
getUri: (uri: string) =>
`bloom://wallet-connect/wc?uri=${encodeURIComponent(uri)}`,
instructions: {
learnMoreUrl: 'https://bloomwallet.io/',
steps: [
{
description: 'wallet_connectors.bloom.qr_code.step1.description',
step: 'install',
title: 'wallet_connectors.bloom.qr_code.step1.title',
},
{
description: 'wallet_connectors.bloom.qr_code.step2.description',
step: 'create',
title: 'wallet_connectors.bloom.qr_code.step2.title',
},
{
description: 'wallet_connectors.bloom.qr_code.step3.description',
step: 'refresh',
title: 'wallet_connectors.bloom.qr_code.step3.title',
},
],
},
},
desktop: {
getUri: (uri: string) =>
`bloom://wallet-connect/wc?uri=${encodeURIComponent(uri)}`,
Expand Down

0 comments on commit 2dda603

Please sign in to comment.