From ce3e254e69a3c5d855f7d9b8b0d5b257c7b6e03b Mon Sep 17 00:00:00 2001 From: Nicole O'Brien Date: Wed, 6 Sep 2023 23:16:49 +0100 Subject: [PATCH] refactor: replace TextHint with Alert from bloom-ui --- .../BurnNativeTokensConfirmationPopup.svelte | 6 +- .../popups/BurnNativeTokensPopup.svelte | 5 +- .../popups/CheckForUpdatesPopup.svelte | 11 ++-- .../popups/ConfirmationPopup.svelte | 8 ++- .../popups/ConnectLedgerPopup.svelte | 13 ++-- .../popups/DeepLinkErrorPopup.svelte | 5 +- .../popups/DeleteAccountPopup.svelte | 5 +- .../popups/ManageVotingPowerPopup.svelte | 9 +-- .../popups/RemoveProposalPopup.svelte | 11 ++-- .../components/popups/RevotePopup.svelte | 9 +-- .../components/popups/SignMessagePopup.svelte | 24 ++++--- .../components/popups/StopVotingPopup.svelte | 11 ++-- .../popups/TokenInformationPopup.svelte | 6 +- .../VerifyLedgerTransactionPopup.svelte | 12 ++-- .../popups/VoteForProposalPopup.svelte | 10 +-- .../popups/VotingPowerToZeroPopup.svelte | 11 ++-- .../popups/WalletFinderPopup.svelte | 6 +- .../views/RemoveContactDrawer.svelte | 12 ++-- .../views/RemoveNetworkAddressesDrawer.svelte | 15 ++--- .../components/DappInformationCard.svelte | 5 +- .../views/ConnectedDappsDrawer.svelte | 9 +-- .../views/InputConnectionCodeDrawer.svelte | 11 ++-- .../views/ProposalDetailsView.svelte | 12 ++-- .../views/login/views/EnterPinView.svelte | 5 +- .../views/FinishOnboardingView.svelte | 5 +- .../views/ChangePasswordView.svelte | 5 +- .../views/UpdateBackupView.svelte | 5 +- .../shared/src/components/TextHint.svelte | 63 ------------------- packages/shared/src/components/index.js | 1 - 29 files changed, 131 insertions(+), 179 deletions(-) delete mode 100644 packages/shared/src/components/TextHint.svelte diff --git a/packages/desktop/components/popups/BurnNativeTokensConfirmationPopup.svelte b/packages/desktop/components/popups/BurnNativeTokensConfirmationPopup.svelte index d4cbc90956..ded05d9cd6 100644 --- a/packages/desktop/components/popups/BurnNativeTokensConfirmationPopup.svelte +++ b/packages/desktop/components/popups/BurnNativeTokensConfirmationPopup.svelte @@ -1,5 +1,5 @@ @@ -12,7 +13,7 @@
{localize('popups.deeplinkError.body')} - +
diff --git a/packages/desktop/components/popups/DeleteAccountPopup.svelte b/packages/desktop/components/popups/DeleteAccountPopup.svelte index deb0cde620..d726421a1a 100644 --- a/packages/desktop/components/popups/DeleteAccountPopup.svelte +++ b/packages/desktop/components/popups/DeleteAccountPopup.svelte @@ -1,11 +1,12 @@ @@ -53,8 +54,8 @@ {localize('popups.removeProposal.title')}
{localize('popups.removeProposal.body')} - {#if isTextHintVisible} - + {#if showAlert} + {/if}
diff --git a/packages/desktop/components/popups/RevotePopup.svelte b/packages/desktop/components/popups/RevotePopup.svelte index 4f37440c17..3035a816fe 100644 --- a/packages/desktop/components/popups/RevotePopup.svelte +++ b/packages/desktop/components/popups/RevotePopup.svelte @@ -1,10 +1,11 @@ @@ -19,7 +20,7 @@
- + diff --git a/packages/desktop/views/dashboard/drawers/dapp-config/views/ConnectedDappsDrawer.svelte b/packages/desktop/views/dashboard/drawers/dapp-config/views/ConnectedDappsDrawer.svelte index aa7dd44f1b..84cc42b4f3 100644 --- a/packages/desktop/views/dashboard/drawers/dapp-config/views/ConnectedDappsDrawer.svelte +++ b/packages/desktop/views/dashboard/drawers/dapp-config/views/ConnectedDappsDrawer.svelte @@ -1,10 +1,11 @@ - -{#if text} -
- - - {text} - -
-{/if} diff --git a/packages/shared/src/components/index.js b/packages/shared/src/components/index.js index b499199d42..58a7aae523 100644 --- a/packages/shared/src/components/index.js +++ b/packages/shared/src/components/index.js @@ -16,7 +16,6 @@ export { default as RecoveryPhrase } from './RecoveryPhrase.svelte' export { default as Spinner } from './Spinner.svelte' export { default as Swiper } from './Swiper.svelte' export { default as Text } from './Text.svelte' -export { default as TextHint } from './TextHint.svelte' export { default as ToastContainer } from './ToastContainer.svelte' export { default as ToastWrapper } from './ToastWrapper.svelte' export { default as Tooltip } from './Tooltip.svelte'