Skip to content

Commit

Permalink
fix(bridge-ui-v2): button disable status (#14674)
Browse files Browse the repository at this point in the history
  • Loading branch information
KorbinianK authored and 2manslkh committed Sep 14, 2023
1 parent e6f5b12 commit 70455cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
await pendingTransactions.add(txHash, Number(bridgeTx.destChainId));
//Todo: just because we have a claim tx doesn't mean it was successful
successToast(
$t('activities.actions.claim.success', {
values: {
Expand Down
5 changes: 2 additions & 3 deletions packages/bridge-ui-v2/src/components/Button/Button.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
export let outline = false;
export let block = false;
export let wide = false;
export let disabled = false;
export let hasBorder = false;
Expand Down Expand Up @@ -71,7 +70,7 @@
// since we're showing some important information.
loading ? 'btn-disabled !text-primary-content' : null,
disabled ? borderClasses : '',
$$restProps.disabled ? borderClasses : '',
$$props.class,
);
Expand All @@ -82,7 +81,7 @@
}
</script>

<button {...$$restProps} {disabled} class={classes} on:click>
<button {...$$restProps} class={classes} on:click>
{#if loading}
<Spinner />
{/if}
Expand Down

0 comments on commit 70455cd

Please sign in to comment.