Skip to content

Commit

Permalink
feat: close modal when opening onGetMana modal and fix loader
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmahidalgo committed Nov 22, 2023
1 parent dda8743 commit 1c60243
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -395,10 +395,15 @@
}

.buyWithCryptoModal .mainLoader:global(.ui.loader) {
position: relative;
align-self: center;
height: 220px;
}

.buyWithCryptoModal .mainLoader:global(.ui.loader::before),
.buyWithCryptoModal .mainLoader:global(.ui.loader::after) {
top: 50%;
}

.buyWithCryptoModal .subtitle {
font-size: 15px;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,10 @@ export const BuyWithCryptoModal = (props: Props) => {
primary
data-testid={GET_MANA_BUTTON_TEST_ID}
loading={isFetchingBalance || isLoading}
onClick={() => onGetMana()}
onClick={() => {
onGetMana()
onClose()
}}
>
{t('buy_with_crypto_modal.get_mana')}
</Button>
Expand Down Expand Up @@ -882,7 +885,7 @@ export const BuyWithCryptoModal = (props: Props) => {
</div>

{!providerTokens.length || !selectedToken ? (
<Loader active className={styles.mainLoader} />
<Loader inline active className={styles.mainLoader} />
) : (
<div
className={styles.payWithContainer}
Expand Down

0 comments on commit 1c60243

Please sign in to comment.