Skip to content

Commit

Permalink
show dapp details for expired dapps (#2652)
Browse files Browse the repository at this point in the history
Co-authored-by: Jean Ribeiro <[email protected]>
  • Loading branch information
MarkNerdi and jeeanribeiro authored Jul 2, 2024
1 parent 0758149 commit 64c196e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import { activeProfileId } from '@core/profile/stores'
export let dapp: IConnectedDapp
export let disabled: boolean = false
export let onClick: (() => unknown) | undefined = undefined
$: networkIds = Object.values(
Expand All @@ -22,7 +21,6 @@

<ClickableTile
classes="bg-surface-0 dark:bg-surface-0-dark border border-solid border-stroke dark:border-stroke-dark"
{disabled}
{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 @@ -64,7 +64,7 @@
{#if displayedDapps.length}
<div class="h-full flex flex-col scrollable px-6 items-start gap-3">
{#each displayedDapps as dapp}
<DappCard {dapp} disabled={selectedIndex === 1} onClick={() => onDappCardClick(dapp)} />
<DappCard {dapp} onClick={() => onDappCardClick(dapp)} />
{/each}
</div>
{:else}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@
onEditNetworksClick={() => drawerRouter.goTo(DappConfigRoute.EditNetworks)}
onEditAccountsClick={() => drawerRouter.goTo(DappConfigRoute.EditAccounts)}
/>
{:else}
<Text type="body2" align="center">{localize(`${localeKey}.notConnectedToProfile`)}</Text>
{/if}
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions packages/shared/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,7 @@
"description": "Description",
"url": "URL",
"verifyUrl": "Verify URL",
"notConnectedToProfile": "Not connected to this profile",
"disconnect": {
"title": "Disconnect",
"description": "Do you want to disconnect from {dappName}?"
Expand Down

0 comments on commit 64c196e

Please sign in to comment.