diff --git a/apps/browser-extension-wallet/src/assets/icons/pause-icon.component.svg b/apps/browser-extension-wallet/src/assets/icons/pause-icon.component.svg new file mode 100644 index 000000000..f458660af --- /dev/null +++ b/apps/browser-extension-wallet/src/assets/icons/pause-icon.component.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/apps/browser-extension-wallet/src/assets/icons/play-icon.component.svg b/apps/browser-extension-wallet/src/assets/icons/play-icon.component.svg new file mode 100644 index 000000000..6036aa2de --- /dev/null +++ b/apps/browser-extension-wallet/src/assets/icons/play-icon.component.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/apps/browser-extension-wallet/src/features/dapp/components/DappTransactionFail.tsx b/apps/browser-extension-wallet/src/features/dapp/components/DappTransactionFail.tsx index 2db3ec9a9..8eada5728 100644 --- a/apps/browser-extension-wallet/src/features/dapp/components/DappTransactionFail.tsx +++ b/apps/browser-extension-wallet/src/features/dapp/components/DappTransactionFail.tsx @@ -1,21 +1,25 @@ import React, { useEffect } from 'react'; import { useTranslation } from 'react-i18next'; -import { Button, PostHogAction } from '@lace/common'; +import { Button, PostHogAction, WarningBanner } from '@lace/common'; import Fail from '../../../assets/icons/exclamation-circle.svg'; import styles from './Layout.module.scss'; import { Image } from 'antd'; import { useAnalyticsContext } from '@providers'; import { TX_CREATION_TYPE_KEY, TxCreationType } from '@providers/AnalyticsProvider/analyticsTracker'; +import { useWalletStore } from '@stores'; +import { useCustomSubmitApi } from '@hooks'; export const DappTransactionFail = (): React.ReactElement => { const { t } = useTranslation(); const analytics = useAnalyticsContext(); + const { environmentName } = useWalletStore(); const onClose = async () => { await analytics?.sendEventToPostHog(PostHogAction.SendSomethingWentWrongCancelClick, { [TX_CREATION_TYPE_KEY]: TxCreationType.External }); window.close(); }; + const { getCustomSubmitApiForNetwork } = useCustomSubmitApi(); useEffect(() => { analytics?.sendEventToPostHog(PostHogAction.SendSomethingWentWrongView, { @@ -33,6 +37,9 @@ export const DappTransactionFail = (): React.ReactElement => {
{t('dapp.sign.failure.description')}
+ {getCustomSubmitApiForNetwork(environmentName).status && ( + + )}