Skip to content

Commit

Permalink
make expired dapp slightly transparent
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkNerdi committed Jan 22, 2024
1 parent 51a8aef commit 7d5173d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import { localize } from '@core/i18n'
export let dapp: IConnectedDapp
export let classes: string = ''
export let onClick: (() => unknown) | undefined = undefined
$: networkIds = Object.values(
Expand All @@ -15,7 +16,7 @@
</script>

<ClickableTile
classes="bg-surface-0 dark:bg-surface-0-dark border border-solid border-stroke dark:border-stroke-dark"
classes="bg-surface-0 dark:bg-surface-0-dark border border-solid border-stroke dark:border-stroke-dark {classes}"
{onClick}
>
<div class="w-full flex flex-row justify-between items-center p-2 gap-3">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@
{#if displayedDapps.length}
<div class="h-full flex flex-col scrollable px-6 items-start gap-3">
{#each displayedDapps as dapp}
<DappCard {dapp} onClick={() => onDappCardClick(dapp)} />
<DappCard
{dapp}
onClick={() => onDappCardClick(dapp)}
classes={selectedIndex === 1 ? 'opacity-50' : ''}
/>
{/each}
</div>
{:else}
Expand Down

0 comments on commit 7d5173d

Please sign in to comment.