Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions apps/watcher/src/app/actions/@form/lock/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
AlertCard,
AlertProps,
ApiKeyModalWarning,
Link,
Id,
Stack,
SubmitButton,
Typography,
Expand Down Expand Up @@ -111,12 +111,11 @@ const LockForm = () => {
message: (
<>
Lock operation is in progress. Wait for tx [
<Link
target="_blank"
<Id
id={response.txId}
indicator="middle"
href={getTxURL(NETWORKS.ergo.key, response.txId)}
>
{response.txId}
</Link>
/>
] to be confirmed by some blocks, so your new permits will be
activated.
</>
Expand Down
13 changes: 6 additions & 7 deletions apps/watcher/src/app/actions/@form/unlock/page.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
'use client';

import Link from 'next/link';
import { useMemo, useState, useEffect, ReactNode } from 'react';
import { FormProvider, SubmitHandler, useForm } from 'react-hook-form';

import {
AlertCard,
AlertProps,
Id,
SubmitButton,
useApiKey,
ApiKeyModalWarning,
Expand Down Expand Up @@ -133,12 +133,11 @@ const UnlockForm = () => {
message: (
<>
Unlock operation is in progress. Wait for tx [
<Link
target="_blank"
href={getTxURL(NETWORKS.ergo.key, response.txId) ?? '/'}
>
{response.txId}
</Link>
<Id
id={response.txId}
indicator="middle"
href={getTxURL(NETWORKS.ergo.key, response.txId)}
/>
] to be confirmed by some blocks.
</>
),
Expand Down
12 changes: 5 additions & 7 deletions apps/watcher/src/app/actions/@form/withdraw/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import {
TextField,
useApiKey,
ApiKeyModalWarning,
Link,
Stack,
} from '@rosen-bridge/ui-kit';
import { NETWORKS, TOKEN_NAME_PLACEHOLDER } from '@rosen-ui/constants';
Expand Down Expand Up @@ -145,12 +144,11 @@ const WithdrawForm = () => {
message: (
<>
Withdrawal is successful. Wait for tx [
<Link
target="_blank"
href={getTxURL(NETWORKS.ergo.key, response.txId) ?? ''}
>
{response.txId}
</Link>
<Id
id={response.txId}
indicator="middle"
href={getTxURL(NETWORKS.ergo.key, response.txId)}
/>
] to be confirmed.
</>
),
Expand Down