Skip to content

Commit

Permalink
refactor(frontend): rename Transactions list component (#3341)
Browse files Browse the repository at this point in the history
# Note

This is a duplicate of #3332 because I changed the account

# Motivation

After PR #3321 , we merge the component `TransactionsSignedIn` into
`Transactions`, since there is no signed-in state anymore.

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
AntonioVentilii and github-actions[bot] authored Nov 5, 2024
1 parent 9056fb7 commit 3862e2d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 20 deletions.
17 changes: 15 additions & 2 deletions src/frontend/src/lib/components/transactions/Transactions.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
<script lang="ts">
import TransactionsSignedIn from '$lib/components/transactions/TransactionsSignedIn.svelte';
import { nonNullish } from '@dfinity/utils';
import BtcTransactions from '$btc/components/transactions/BtcTransactions.svelte';
import Transactions from '$eth/components/transactions/Transactions.svelte';
import IcTransactions from '$icp/components/transactions/IcTransactions.svelte';
import { routeNetwork, routeToken } from '$lib/derived/nav.derived';
import { networkBitcoin, networkICP } from '$lib/derived/network.derived';
</script>

<TransactionsSignedIn />
{#if nonNullish($routeNetwork)}
{#if $networkICP}
<IcTransactions />
{:else if $networkBitcoin}
<BtcTransactions />
{:else if nonNullish($routeToken)}
<Transactions />
{/if}
{/if}

This file was deleted.

0 comments on commit 3862e2d

Please sign in to comment.