Skip to content

Commit

Permalink
Fix testnet apps button
Browse files Browse the repository at this point in the history
  • Loading branch information
dmytrotkk committed Jul 10, 2024
1 parent 9067fe9 commit 7ff15d2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/ChainApps.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default function ChainApps(props: {
<div className={cls(styles.sk__chainApps, cmn.mri10, cmn.flex, cmn.flexcv)}>
<div className={cls(cmn.mtop10, cmn.mbott10)}>
{show ? appButtons : appButtons.length === 4 ? appButtons : appButtons.slice(0, 3)}
<Button
{appButtons.length > 3 && <Button
onClick={() => {
setShow(!show)
}}
Expand All @@ -93,7 +93,7 @@ export default function ChainApps(props: {
[styles.chainIconsm, size === 'md']
)} />
) : (
<AddCircleRoundedIcon className={cls(cmn.pPrim,
<AddCircleRoundedIcon className={cls(cmn.pPrim,
[styles.chainIconxs, size === 'sm'],
[styles.chainIconsm, size === 'md']
)} />
Expand All @@ -112,7 +112,9 @@ export default function ChainApps(props: {
Show {show ? 'less' : 'more'} apps
</p>
</div>
</Button>
</Button>}


</div>
</div>
)
Expand Down

0 comments on commit 7ff15d2

Please sign in to comment.