Skip to content

Commit 57587c0

Browse files
committed
refactor show more wallets state for more clarity
1 parent ec1fcea commit 57587c0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/modal/src/ui/components/ConnectWallet/ConnectWalletList/ConnectWalletList.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,18 +116,18 @@ function ConnectWalletList(props: ConnectWalletListProps) {
116116
buttonRadius,
117117
} = props;
118118

119-
const [showMoreWallets, setShowMoreWallets] = useState(true);
119+
const [showMoreWalletsButton, setShowMoreWalletsButton] = useState(true);
120120

121121
const onShowMoreWalletsClick = () => {
122-
setShowMoreWallets(false);
122+
setShowMoreWalletsButton(false);
123123
handleMoreWallets();
124124
};
125125

126126
return (
127127
<>
128128
<ul
129129
className={cn("w3a--overflow-y-auto w3a--flex w3a--flex-col w3a--gap-y-2 w3a--h-[280px] w3a--social-container w3a--pr-2.5", {
130-
"w3a--h-[328px]": !showMoreWallets,
130+
"w3a--h-[328px]": !showMoreWalletsButton,
131131
})}
132132
>
133133
{externalButtons.length === 0 ? (
@@ -143,7 +143,7 @@ function ConnectWalletList(props: ConnectWalletListProps) {
143143
/>
144144
)}
145145
</ul>
146-
{showMoreWallets && totalExternalWalletsCount > 15 && !isLoading && initialWalletCount < totalExternalWalletsCount && (
146+
{showMoreWalletsButton && totalExternalWalletsCount > 15 && !isLoading && initialWalletCount < totalExternalWalletsCount && (
147147
<MoreWalletsButton
148148
totalExternalWalletsCount={totalExternalWalletsCount}
149149
initialWalletCount={initialWalletCount}

0 commit comments

Comments
 (0)