Skip to content

Commit

Permalink
enhancement: polish UI (#4838)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuditi authored Oct 10, 2022
1 parent 6efec96 commit 0627593
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions packages/shared/components/popups/Transaction.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="typescript">
import { localize } from '@core/i18n'
import { Unit } from '@iota/unit-converter'
import { Button, Icon, Illustration, Popup, Text } from 'shared/components'
import { Button, Icon, Illustration, Text } from 'shared/components'
import { convertToFiat, currencies, exchangeRates, formatCurrency, isFiatCurrency } from 'shared/lib/currency'
import { isAccountStaked, isParticipationPossible } from 'shared/lib/participation'
import { selectedAccountParticipationOverview } from 'shared/lib/participation/account'
Expand All @@ -12,7 +12,6 @@
import { AvailableExchangeRates, CurrencyTypes } from 'shared/lib/typings/currency'
import { formatUnitBestMatch, formatUnitPrecision } from 'shared/lib/units'
import { TrackedParticipationItem } from 'shared/lib/participation/types'
import { sendParams } from '@lib/app'
export let accountId: string
export let internal = false
Expand Down Expand Up @@ -126,17 +125,7 @@
<Text type="h4" highlighted classes="mb-2">
{localize('popups.transaction.body', { values: { amount: displayAmount } })}
</Text>
<Text type={internal ? 'p' : 'pre'} secondary bigger classes="mb-2">{to}</Text>
{#if $sendParams.tag && $sendParams.metadata}
<Text type="h4" highlighted classes="mb-2">
{localize('general.tag')}:
</Text>
<Text type={'pre'} secondary bigger classes="mb-2">{$sendParams.tag}</Text>
<Text type="h4" highlighted classes="mb-2">
{localize('general.metadata')}:
</Text>
<Text type={'pre'} secondary bigger classes="mb-2">{$sendParams.metadata}</Text>
{/if}
<Text type={internal ? 'p' : 'pre'} secondary bigger>{to}</Text>
</div>
{/if}
<div class="flex flex-row flex-nowrap w-full space-x-4">
Expand Down

0 comments on commit 0627593

Please sign in to comment.