diff --git a/packages/beacon-ui/src/components/wallets/index.tsx b/packages/beacon-ui/src/components/wallets/index.tsx index d1d517ce4..c51793582 100644 --- a/packages/beacon-ui/src/components/wallets/index.tsx +++ b/packages/beacon-ui/src/components/wallets/index.tsx @@ -13,28 +13,40 @@ interface WalletProps { } const Wallets: React.FC = (props: WalletProps) => { + const wallets = props.wallets.map((wallet) => ( + { + props.onClickWallet(wallet.id) + }} + /> + )) + const groupedElements = [] + + for (let i = 0; i < wallets.length; i += 4) { + groupedElements.push(wallets.slice(i, i + 4)) + } + return ( - - {props.wallets.map((wallet) => ( - { - props.onClickWallet(wallet.id) - }} - /> - ))} -