diff --git a/packages/bridge-ui/src/components/Transactions/Dialogs/RetryDialog/RetryStepNavigation.svelte b/packages/bridge-ui/src/components/Dialogs/RetryDialog/RetryStepNavigation.svelte
similarity index 100%
rename from packages/bridge-ui/src/components/Transactions/Dialogs/RetryDialog/RetryStepNavigation.svelte
rename to packages/bridge-ui/src/components/Dialogs/RetryDialog/RetryStepNavigation.svelte
diff --git a/packages/bridge-ui/src/components/Transactions/Dialogs/RetryDialog/RetrySteps/RetryOptionStep.svelte b/packages/bridge-ui/src/components/Dialogs/RetryDialog/RetrySteps/RetryOptionStep.svelte
similarity index 100%
rename from packages/bridge-ui/src/components/Transactions/Dialogs/RetryDialog/RetrySteps/RetryOptionStep.svelte
rename to packages/bridge-ui/src/components/Dialogs/RetryDialog/RetrySteps/RetryOptionStep.svelte
diff --git a/packages/bridge-ui/src/components/Transactions/Dialogs/RetryDialog/state.ts b/packages/bridge-ui/src/components/Dialogs/RetryDialog/state.ts
similarity index 100%
rename from packages/bridge-ui/src/components/Transactions/Dialogs/RetryDialog/state.ts
rename to packages/bridge-ui/src/components/Dialogs/RetryDialog/state.ts
diff --git a/packages/bridge-ui/src/components/Transactions/Dialogs/RetryDialog/types.ts b/packages/bridge-ui/src/components/Dialogs/RetryDialog/types.ts
similarity index 100%
rename from packages/bridge-ui/src/components/Transactions/Dialogs/RetryDialog/types.ts
rename to packages/bridge-ui/src/components/Dialogs/RetryDialog/types.ts
diff --git a/packages/bridge-ui/src/components/Transactions/Dialogs/ClaimDialog/ClaimSteps/ClaimConfirmStep.svelte b/packages/bridge-ui/src/components/Dialogs/Shared/ClaimConfirmStep.svelte
similarity index 72%
rename from packages/bridge-ui/src/components/Transactions/Dialogs/ClaimDialog/ClaimSteps/ClaimConfirmStep.svelte
rename to packages/bridge-ui/src/components/Dialogs/Shared/ClaimConfirmStep.svelte
index 5439a888e34..7c1fa690b03 100644
--- a/packages/bridge-ui/src/components/Transactions/Dialogs/ClaimDialog/ClaimSteps/ClaimConfirmStep.svelte
+++ b/packages/bridge-ui/src/components/Dialogs/Shared/ClaimConfirmStep.svelte
@@ -10,16 +10,12 @@
import type { BridgeTransaction } from '$libs/bridge';
import { theme } from '$stores/theme';
- import { TWO_STEP_STATE } from '../types';
-
export let canClaim = false;
export let claimingDone = false;
export let claiming = false;
- export let proveOrClaimStep: TWO_STEP_STATE | null;
-
export let bridgeTx: BridgeTransaction;
export let txHash: Hash;
@@ -31,18 +27,12 @@
};
const getSuccessTitle = () => {
- if (proveOrClaimStep === TWO_STEP_STATE.PROVE) {
- return $t('bridge.step.confirm.success.prove');
- }
-
return $t('bridge.step.confirm.success.claim');
};
const getSuccessDescription = () => {
if (!txHash) return;
- if (proveOrClaimStep === TWO_STEP_STATE.PROVE) {
- return $t('bridge.step.confirm.success.prove_description');
- }
+
const explorer = chainConfig[Number(bridgeTx.destChainId)]?.blockExplorers?.default.url;
const url = `${explorer}/tx/${txHash}`;
@@ -53,21 +43,6 @@
getSuccessDescription();
}
- $: claimOrProveActionButton =
- proveOrClaimStep === TWO_STEP_STATE.CLAIM
- ? $t('transactions.claim.steps.confirm.claim_button')
- : $t('transactions.claim.steps.confirm.prove');
-
- $: proceedText =
- proveOrClaimStep === TWO_STEP_STATE.CLAIM
- ? $t('transactions.claim.steps.confirm.proceed')
- : $t('transactions.claim.steps.confirm.prove');
-
- $: proceedDescription =
- proveOrClaimStep === TWO_STEP_STATE.CLAIM
- ? $t('transactions.claim.steps.confirm.claim_description')
- : $t('transactions.claim.steps.confirm.prove_description');
-
$: bridgeIcon = `bridge-${$theme}` as IconType;
$: successIcon = `success-${$theme}` as IconType;
@@ -98,8 +73,8 @@
{:else if !claiming && !claimingDone}
-
{proceedText}
- {proceedDescription}
+ {$t('transactions.claim.steps.confirm.proceed')}
+ {$t('transactions.claim.steps.confirm.claim_description')}
{/if}
@@ -112,7 +87,7 @@
priority="primary"
loading={claiming}
on:click={() => handleClaimClick()}
- disabled={claimDisabled}>{claimOrProveActionButton}
+ disabled={claimDisabled}>{$t('transactions.claim.steps.confirm.claim_button')}
{/if}
diff --git a/packages/bridge-ui/src/components/Transactions/Dialogs/ClaimDialog/ClaimSteps/ClaimReviewStep.svelte b/packages/bridge-ui/src/components/Dialogs/Shared/ReviewStep.svelte
similarity index 100%
rename from packages/bridge-ui/src/components/Transactions/Dialogs/ClaimDialog/ClaimSteps/ClaimReviewStep.svelte
rename to packages/bridge-ui/src/components/Dialogs/Shared/ReviewStep.svelte
diff --git a/packages/bridge-ui/src/components/Dialogs/Shared/index.ts b/packages/bridge-ui/src/components/Dialogs/Shared/index.ts
new file mode 100644
index 00000000000..5f66dad17bd
--- /dev/null
+++ b/packages/bridge-ui/src/components/Dialogs/Shared/index.ts
@@ -0,0 +1,2 @@
+export { default as ClaimConfirmStep } from './ClaimConfirmStep.svelte';
+export { default as ReviewStep } from './ReviewStep.svelte';
diff --git a/packages/bridge-ui/src/components/Dialogs/Shared/types.ts b/packages/bridge-ui/src/components/Dialogs/Shared/types.ts
new file mode 100644
index 00000000000..8bf5465e792
--- /dev/null
+++ b/packages/bridge-ui/src/components/Dialogs/Shared/types.ts
@@ -0,0 +1,5 @@
+export const enum ClaimAction {
+ CLAIM,
+ RETRY,
+ RELEASE,
+}
diff --git a/packages/bridge-ui/src/components/Transactions/Dialogs/Stepper/DialogStep.svelte b/packages/bridge-ui/src/components/Dialogs/Stepper/DialogStep.svelte
similarity index 100%
rename from packages/bridge-ui/src/components/Transactions/Dialogs/Stepper/DialogStep.svelte
rename to packages/bridge-ui/src/components/Dialogs/Stepper/DialogStep.svelte
diff --git a/packages/bridge-ui/src/components/Transactions/Dialogs/Stepper/DialogStepper.svelte b/packages/bridge-ui/src/components/Dialogs/Stepper/DialogStepper.svelte
similarity index 100%
rename from packages/bridge-ui/src/components/Transactions/Dialogs/Stepper/DialogStepper.svelte
rename to packages/bridge-ui/src/components/Dialogs/Stepper/DialogStepper.svelte
diff --git a/packages/bridge-ui/src/components/Transactions/Dialogs/Stepper/index.ts b/packages/bridge-ui/src/components/Dialogs/Stepper/index.ts
similarity index 100%
rename from packages/bridge-ui/src/components/Transactions/Dialogs/Stepper/index.ts
rename to packages/bridge-ui/src/components/Dialogs/Stepper/index.ts
diff --git a/packages/bridge-ui/src/components/Dialogs/index.ts b/packages/bridge-ui/src/components/Dialogs/index.ts
new file mode 100644
index 00000000000..0130eb64f7d
--- /dev/null
+++ b/packages/bridge-ui/src/components/Dialogs/index.ts
@@ -0,0 +1,3 @@
+export { default as ClaimDialog } from './ClaimDialog/ClaimDialog.svelte';
+export { default as ReleaseDialog } from './ReleaseDialog/ReleaseDialog.svelte';
+export { default as RetryDialog } from './RetryDialog/RetryDialog.svelte';
diff --git a/packages/bridge-ui/src/components/Faucet/Faucet.svelte b/packages/bridge-ui/src/components/Faucet/Faucet.svelte
index 3813303ad5f..eb19cb8a8b6 100644
--- a/packages/bridge-ui/src/components/Faucet/Faucet.svelte
+++ b/packages/bridge-ui/src/components/Faucet/Faucet.svelte
@@ -1,5 +1,4 @@
diff --git a/packages/bridge-ui/src/components/Transactions/Dialogs/ClaimDialog/ClaimSteps/ClaimPreCheck.svelte b/packages/bridge-ui/src/components/Transactions/Dialogs/ClaimDialog/ClaimSteps/ClaimPreCheck.svelte
deleted file mode 100644
index d8fbf34bdc1..00000000000
--- a/packages/bridge-ui/src/components/Transactions/Dialogs/ClaimDialog/ClaimSteps/ClaimPreCheck.svelte
+++ /dev/null
@@ -1,216 +0,0 @@
-
-
-