From 61b4b859c28b8989f52dc5175ec655f31ef7e0a3 Mon Sep 17 00:00:00 2001 From: wantedsystem Date: Wed, 24 Jul 2024 10:42:01 +0200 Subject: [PATCH 1/4] feat: add a warning for resolution delay --- .../stage/TransactionStageModal.tsx | 13 +++++++++++++ .../profile/[name]/registration/CompletePoh.tsx | 11 +++++++++++ packages/linea-ens-app/src/layouts/Content.tsx | 2 +- 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/packages/linea-ens-app/src/components/@molecules/TransactionDialogManager/stage/TransactionStageModal.tsx b/packages/linea-ens-app/src/components/@molecules/TransactionDialogManager/stage/TransactionStageModal.tsx index 43b380b31..33e65caeb 100644 --- a/packages/linea-ens-app/src/components/@molecules/TransactionDialogManager/stage/TransactionStageModal.tsx +++ b/packages/linea-ens-app/src/components/@molecules/TransactionDialogManager/stage/TransactionStageModal.tsx @@ -22,6 +22,7 @@ import { useAddRecentTransaction } from '@app/hooks/transactions/useAddRecentTra import { useRecentTransactions } from '@app/hooks/transactions/useRecentTransactions' import { useIsSafeApp } from '@app/hooks/useIsSafeApp' import { useQueryOptions } from '@app/hooks/useQueryOptions' +import { Content } from '@app/layouts/Content' import { ManagedDialogProps, TransactionFlowAction, @@ -506,6 +507,18 @@ export const TransactionStageModal = ({ )} {lowerError && {lowerError}} + {stage === 'complete' ? ( + + {{ + warning: { + type: 'warning', + message: + 'You will be able to use your new domain anywhere ENS is supported once the transaction is finalized on L1. This process takes 8 to 32 hours. Read more', + }, + trailing: <>, + }} + + ) : null} css` @@ -175,6 +176,16 @@ const CompletePoh = ({ name, beautifiedName, callback }: Props) => { {t('steps.complete.description')} + + {{ + warning: { + type: 'warning', + message: + 'You will be able to use your new domain anywhere ENS is supported once the transaction is finalized on L1. This process takes 8 to 32 hours. Read more', + }, + trailing: <>, + }} +