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 Sep 11, 2023
1 parent 80f3427 commit 4b304dc
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

2 comments on commit 4b304dc

@vercel
Copy link

@vercel vercel bot commented on 4b304dc Sep 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

bridge-ui-v2-internal – ./packages/bridge-ui-v2

bridge-ui-v2-internal-taikoxyz.vercel.app
bridge-ui-v2-internal-git-main-taikoxyz.vercel.app
bridge-ui-v2-internal.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 4b304dc Sep 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

bridge-ui-v2 – ./packages/bridge-ui-v2

bridge-ui-v2-git-main-taikoxyz.vercel.app
taiko-mono-bridge-ui-v2.vercel.app
bridge-ui-v2-taikoxyz.vercel.app

Please sign in to comment.