Skip to content

Commit

Permalink
feat: make the wallet modal better (#8923)
Browse files Browse the repository at this point in the history
* polish: make the wallet modal better

* feat: wcv2 too

* chore: fine I'll call it feat then
  • Loading branch information
gomesalexandre authored Feb 25, 2025
1 parent d31149b commit d00d798
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ export const NewWalletViewsSwitch = () => {
top={3}
zIndex={1}
bg={buttonContainerBgColor}
borderRadius='full'
borderRadius='2xl'
>
<IconButton
icon={arrowBackIcon}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ const WalletOption = ({ connect, isSelected, isDisabled, icon: Icon, name }: Wal
<Box
as={Button}
variant='ghost'
whiteSpace='normal'
px={4}
ml={-4}
py={6}
ml='-16px'
mr='-16px'
py={2.5}
borderRadius='md'
width='full'
onClick={connect}
bg={isSelected ? backgroundColor : undefined}
isDisabled={isDisabled}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@ const MipdProviderSelectItem = ({
as={Button}
key={provider.info.rdns}
variant='ghost'
whiteSpace='normal'
px={4}
ml={-4}
py={6}
ml='-16px'
mr='-16px'
py={2.5}
borderRadius='md'
width='full'
onClick={handleConnect}
bg={isSelected ? backgroundColor : undefined}
isDisabled={isDisabled}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ const WalletConnectOption = ({
as={Button}
key='walletconnect'
variant='ghost'
whiteSpace='normal'
px={4}
ml={-4}
py={6}
ml='-16px'
mr='-16px'
py={2.5}
borderRadius='md'
width='full'
onClick={connect}
bg={isSelected ? backgroundColor : undefined}
isDisabled={isDisabled}
Expand Down Expand Up @@ -62,11 +63,12 @@ const CoinbaseQROption = ({
as={Button}
key='coinbaseqr'
variant='ghost'
whiteSpace='normal'
px={4}
ml={-4}
py={6}
ml='-16px'
mr='-16px'
py={2.5}
borderRadius='md'
width='full'
onClick={connect}
bg={isSelected ? selectedBackgroundColor : undefined}
isDisabled={isDisabled}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@ const WalletCard = ({ wallet, onClick, isSelected }: WalletCardProps) => {
<Box
as={Button}
variant='ghost'
whiteSpace='normal'
px={4}
ml={-4}
py={6}
ml='-16px'
mr='-16px'
py={2.5}
borderRadius='md'
width='full'
onClick={handleClick}
bg={isSelected ? bgColor : undefined}
>
Expand All @@ -61,8 +62,6 @@ export const SavedWalletsSection = ({
selectedWalletId: string | null
onWalletSelect: (id: string, initialRoute: string) => void
}) => {
const buttonBgColor = useColorModeValue('blackAlpha.50', 'whiteAlpha.50')

const history = useHistory()
const localWallet = useLocalWallet()
const { getAdapter, dispatch } = useWallet()
Expand Down Expand Up @@ -147,12 +146,11 @@ export const SavedWalletsSection = ({
variant='ghost'
whiteSpace='normal'
px={4}
ml={-4}
py={6}
ml='-16px'
mr='-16px'
py={2.5}
borderRadius='md'
width='full'
onClick={handleAddNewWalletClick}
bg={buttonBgColor}
>
<Flex alignItems='center' width='full' color='gray.500'>
<Icon as={FaPlus} boxSize='12px' mr={3} />
Expand Down

0 comments on commit d00d798

Please sign in to comment.