From 2b585b27c0e68fb3e8c5914dda202b7d82b176a2 Mon Sep 17 00:00:00 2001 From: vetalcore Date: Mon, 26 Feb 2024 14:43:49 +0200 Subject: [PATCH] fix(extension): resolve sanchonet pr comments --- apps/browser-extension-wallet/src/config.ts | 5 +++-- .../confirm-transaction/ConfirmTransaction.tsx | 3 ++- .../ConfirmTransactionContent.tsx | 2 -- .../DappTransactionContainer.tsx | 1 + .../VotingProceduresContainer.tsx | 2 +- .../dapp/components/confirm-transaction/hooks.ts | 3 +-- .../HardForkInitiationActionContainer.tsx | 2 +- .../proposal-procedures/InfoActionContainer.tsx | 2 +- .../NewConstitutionActionContainer.tsx | 2 +- .../NoConfidenceActionContainer.tsx | 2 +- .../ParameterChangeActionContainer.tsx | 2 +- .../TreasuryWithdrawalsActionContainer.tsx | 2 +- .../UpdateCommitteeActionContainer.tsx | 6 +++--- .../components/TransactionDetailsProxy.tsx | 16 +++++----------- .../activity/helpers/common-tx-transformer.ts | 5 +++-- .../AssetDetailsDrawer/AssetDetails.tsx | 14 +++----------- 16 files changed, 28 insertions(+), 41 deletions(-) diff --git a/apps/browser-extension-wallet/src/config.ts b/apps/browser-extension-wallet/src/config.ts index 4180e7af3..3e6ad690f 100644 --- a/apps/browser-extension-wallet/src/config.ts +++ b/apps/browser-extension-wallet/src/config.ts @@ -22,7 +22,7 @@ export type Config = { ADA_PRICE_CHECK_INTERVAL: number; TOKEN_PRICE_CHECK_INTERVAL: number; AVAILABLE_CHAINS: Wallet.ChainName[]; - CEXPLORER_BASE_URL: Record, string>; + CEXPLORER_BASE_URL: Record; CEXPLORER_URL_PATHS: CExplorerUrlPaths; SAVED_PRICE_DURATION: number; }; @@ -84,7 +84,8 @@ export const config = (): Config => { CEXPLORER_BASE_URL: { Mainnet: `${process.env.CEXPLORER_URL_MAINNET}`, Preprod: `${process.env.CEXPLORER_URL_PREPROD}`, - Preview: `${process.env.CEXPLORER_URL_PREVIEW}` + Preview: `${process.env.CEXPLORER_URL_PREVIEW}`, + Sanchonet: `${process.env.CEXPLORER_URL_SANCHONET}` }, CEXPLORER_URL_PATHS: { Tx: 'tx', diff --git a/apps/browser-extension-wallet/src/features/dapp/components/confirm-transaction/ConfirmTransaction.tsx b/apps/browser-extension-wallet/src/features/dapp/components/confirm-transaction/ConfirmTransaction.tsx index 696858123..e38ee78ba 100644 --- a/apps/browser-extension-wallet/src/features/dapp/components/confirm-transaction/ConfirmTransaction.tsx +++ b/apps/browser-extension-wallet/src/features/dapp/components/confirm-transaction/ConfirmTransaction.tsx @@ -20,6 +20,7 @@ import { UserPromptService } from '@lib/scripts/background/services'; import { DAPP_CHANNELS } from '@src/utils/constants'; import { of, take } from 'rxjs'; import { runtime } from 'webextension-polyfill'; +import { Skeleton } from 'antd'; export const ConfirmTransaction = (): React.ReactElement => { const { t } = useTranslation(); @@ -96,7 +97,7 @@ export const ConfirmTransaction = (): React.ReactElement => { pageClassname={styles.spaceBetween} title={!confirmTransactionError && txType && t(`core.${txType}.title`)} > - {req && txType && } + {req && txType ? : } {!confirmTransactionError && (