Skip to content

Commit

Permalink
refactor: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nicole-obrien committed Jul 10, 2024
1 parent d78e8ce commit fa067d0
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@
</svelte:fragment>
<div class="flex flex-col space-y-5">
<TransactionAssetSection {baseCoinTransfer} />
{#if $$slots.transactionDetails}
<slot name="transactionDetails" />
{/if}
<slot name="transactionDetails" />
</div>
</PopupTemplate>
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@
</svelte:fragment>
<div class="flex flex-col space-y-5">
<TransactionAssetSection {baseCoinTransfer} {nft} />
{#if $$slots.transactionDetails}
<slot name="transactionDetails" />
{/if}
<slot name="transactionDetails" />
</div>
</PopupTemplate>
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@
<div class="flex flex-col space-y-5">
<TransactionAssetSection {baseCoinTransfer} />
<EvmSmartContractAlert parsedSmartContract={parsedData} {networkId} />
{#if $$slots.transactionDetails}
<slot name="transactionDetails" />
{/if}
<slot name="transactionDetails" />
</div>
</PopupTemplate>
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@
<div class="flex flex-col space-y-5">
<TransactionAssetSection {baseCoinTransfer} />
<EvmTokenApprovalAlert {parsedTokenApproval} {networkId} />
{#if $$slots.transactionDetails}
<slot name="transactionDetails" />
{/if}
<slot name="transactionDetails" />
{#if baseCoinTransfer.rawAmount > BigInt(0)}
<!-- Display alert if token approval is also trying to consume value -->
<Alert variant="danger" text="Beware this approval transaction is also trying to consume base tokens!" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@
</svelte:fragment>
<div class="flex flex-col space-y-5">
<TransactionAssetSection {baseCoinTransfer} tokenTransfer={{ token, rawAmount }} />
{#if $$slots.transactionDetails}
<slot name="transactionDetails" />
{/if}
<slot name="transactionDetails" />
</div>
</PopupTemplate>

0 comments on commit fa067d0

Please sign in to comment.