diff --git a/webapp/app/[locale]/tunnel/_components/form.tsx b/webapp/app/[locale]/tunnel/_components/form.tsx index 9f834a30..17d4e58d 100644 --- a/webapp/app/[locale]/tunnel/_components/form.tsx +++ b/webapp/app/[locale]/tunnel/_components/form.tsx @@ -17,15 +17,6 @@ const CustomTokenDrawer = dynamic(() => import('components/customTokenDrawer').then(mod => mod.CustomTokenDrawer), ) -// eslint-disable-next-line @typescript-eslint/no-unused-vars -const TransactionStatus = dynamic( - () => - import('components/transactionStatus').then(mod => mod.TransactionStatus), - { - ssr: false, - }, -) - type FormContentProps = { isRunningOperation: boolean minInputMsg?: string diff --git a/webapp/components/transactionStatus.tsx b/webapp/components/transactionStatus.tsx deleted file mode 100644 index 93f3202f..00000000 --- a/webapp/components/transactionStatus.tsx +++ /dev/null @@ -1,152 +0,0 @@ -import { useTranslations } from 'next-intl' -import { Card } from 'ui-common/components/card' - -import { ExternalLink } from './externalLink' - -const Error = () => ( - - - -) - -const Loading = () => ( - - - - - -) - -const Success = () => ( - - - -) - -const Arrow = () => ( - - - -) - -type Props = { - explorerUrl: string - status: 'error' | 'loading' | 'success' - text: string - txHash: string | undefined -} - -export const TransactionStatus = function ({ - explorerUrl, - status, - text, - txHash, -}: Props) { - const t = useTranslations('common.transaction-status') - - const statusMap = { - error: { - color: 'text-rose-700', - text: t('error'), - }, - loading: { - color: 'text-amber-500', - text: t('pending'), - }, - success: { - color: 'text-green-600', - text: t('confirmed'), - }, - } as const - - const icons = { - error: , - loading: , - success: , - } - - return ( - - - - {icons[status]} - - {text} - - - {statusMap[status].text} - - - - - - - - - - ) -}
{text}
- {statusMap[status].text} -