From f53108a102f81e2d2979f484e8158b8af9298f93 Mon Sep 17 00:00:00 2001 From: Mark Nardi Date: Mon, 22 Jan 2024 14:06:30 +0100 Subject: [PATCH] disable expired dapps --- .../drawers/dapp-config/components/DappCard.svelte | 5 +++-- .../drawers/dapp-config/views/ConnectedDappsDrawer.svelte | 6 +----- packages/shared/src/components/tiles/ClickableTile.svelte | 4 ++-- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/packages/desktop/views/dashboard/drawers/dapp-config/components/DappCard.svelte b/packages/desktop/views/dashboard/drawers/dapp-config/components/DappCard.svelte index b4029e2056..80dbd5a224 100644 --- a/packages/desktop/views/dashboard/drawers/dapp-config/components/DappCard.svelte +++ b/packages/desktop/views/dashboard/drawers/dapp-config/components/DappCard.svelte @@ -7,7 +7,7 @@ import { localize } from '@core/i18n' export let dapp: IConnectedDapp - export let classes: string = '' + export let disabled: boolean = false export let onClick: (() => unknown) | undefined = undefined $: networkIds = Object.values( @@ -16,7 +16,8 @@
diff --git a/packages/desktop/views/dashboard/drawers/dapp-config/views/ConnectedDappsDrawer.svelte b/packages/desktop/views/dashboard/drawers/dapp-config/views/ConnectedDappsDrawer.svelte index 5e7b39d8ae..43d2567222 100644 --- a/packages/desktop/views/dashboard/drawers/dapp-config/views/ConnectedDappsDrawer.svelte +++ b/packages/desktop/views/dashboard/drawers/dapp-config/views/ConnectedDappsDrawer.svelte @@ -57,11 +57,7 @@ {#if displayedDapps.length}
{#each displayedDapps as dapp} - onDappCardClick(dapp)} - classes={selectedIndex === 1 ? 'opacity-50' : ''} - /> + onDappCardClick(dapp)} /> {/each}
{:else} diff --git a/packages/shared/src/components/tiles/ClickableTile.svelte b/packages/shared/src/components/tiles/ClickableTile.svelte index 8ea892e09c..761e475480 100644 --- a/packages/shared/src/components/tiles/ClickableTile.svelte +++ b/packages/shared/src/components/tiles/ClickableTile.svelte @@ -9,11 +9,11 @@ !disabled && onClick?.()} >