Skip to content

Commit

Permalink
feat: add Warning Text for Bitcoin Wallet Connection Modal (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
rozanagy authored Oct 22, 2024
1 parent a17814a commit d355b63
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import { Link, Text, VStack } from '@chakra-ui/react';

export function UpdateBitcoinWalletMessage(): React.JSX.Element {
return (
<VStack
alignItems={'end'}
p={'15px'}
w={'100%'}
border={'1px dashed'}
borderRadius={'md'}
borderColor={'orange.01'}
>
<Text color={'white'} fontSize={'12px'}>
Before proceeding, please make sure your Bitcoin Wallet is up to date.
</Text>
<Text color={'white'} fontSize={'12px'}>
If you are using Ledger, ensure both the device firmware and Bitcoin App are updated to
avoid errors.
</Text>
<Text color={'white'} fontSize={'12px'}>
Use{' '}
<Link
color={'orange.01'}
href="https://support.ledger.com/article/8458939792669-zd"
isExternal
>
Ledger Live
</Link>{' '}
to update both firmware and the app easily.
</Text>
</VStack>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { BitcoinWalletType, bitcoinWallets } from '@models/wallet';
import { modalActions } from '@store/slices/modal/modal.actions';

import { SelectBitcoinWalletMenu } from './components/select-bitcoin-wallet-modal-menu';
import { UpdateBitcoinWalletMessage } from './components/update-bitcoin-wallet-message';

export function SelectBitcoinWalletModal({
isOpen,
Expand Down Expand Up @@ -79,6 +80,7 @@ export function SelectBitcoinWalletModal({
handleClick={() => handleLogin(wallet.id)}
/>
))}
<UpdateBitcoinWalletMessage />
</VStack>
</ModalLayout>
);
Expand Down
2 changes: 1 addition & 1 deletion src/styles/modal-theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const { definePartsStyle, defineMultiStyleConfig } = createMultiStyleConfigHelpe

const baseStyle = definePartsStyle({
dialogContainer: {
top: '19.5%',
top: '10.5%',
},
dialog: {
padding: '15px',
Expand Down

0 comments on commit d355b63

Please sign in to comment.