Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(bridge-ui-v2): button disable status #14674

Merged
merged 2 commits into from
Sep 11, 2023
Merged
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
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