Skip to content

Commit

Permalink
fix: Table and IconName (#529)
Browse files Browse the repository at this point in the history
* fix: change FlatIconName to IconName

* fix: irc27Metadata as plain object to Table

* chore: updates @bloomwalletio/ui

* chore: updates @bloomwalletio/ui
  • Loading branch information
jeeanribeiro authored Aug 30, 2023
1 parent 3978b7c commit 7750883
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 18 deletions.
4 changes: 2 additions & 2 deletions packages/desktop/components/NetworkCard.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { Button, CopyableButton, FlatIconName } from '@bloomwalletio/ui'
import { Button, CopyableButton, IconName } from '@bloomwalletio/ui'
import { selectedAccount } from '@core/account/stores'
import { localize } from '@core/i18n'
import { generateAndStoreEvmAddressForAccount } from '@core/layer-2'
Expand Down Expand Up @@ -111,7 +111,7 @@
{/if}
</div>
{#if address}
<Button variant="text" icon={FlatIconName.Qrcode} on:click={onQrCodeIconClick} />
<Button variant="text" icon={IconName.QrCode} on:click={onQrCodeIconClick} />
{/if}
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { Button, FlatIconName } from '@bloomwalletio/ui'
import { Button, IconName } from '@bloomwalletio/ui'
import { sumBalanceForAccounts } from '@core/account'
import { selectedAccount } from '@core/account/stores'
import { formatCurrency, localize } from '@core/i18n'
Expand Down Expand Up @@ -49,7 +49,7 @@
class=" flex flex-row justify-between w-full p-8 hover:bg-gray-50 dark:hover:bg-gray-800"
on:click={onCreateAccountClick}
>
<Button icon={FlatIconName.Plus} variant="text" text={localize('general.addAWallet')} />
<Button icon={IconName.Plus} variant="text" text={localize('general.addAWallet')} />
<div class="flex flex-col items-end text-right space-y-1">
<Text type={TextType.h5}>
{formatTokenAmountBestMatch(totalBalance, getBaseToken())}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,11 @@
}))}
/>
{:else if activeTab === Tab.Metadata}
<!-- Todo we need to create a code display component -->
<Table
orientation="vertical"
items={[
{
key: localize('general.metadata'),
value: JSON.stringify(irc27Metadata, null, '\t'),
value: irc27Metadata,
copyable: true,
},
]}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { Icon as IconEnum } from '@auxiliary/icon'
import { Button, FlatIconName } from '@bloomwalletio/ui'
import { Button, IconName } from '@bloomwalletio/ui'
import { ContactAddressCard, ContactMetadataTable, DrawerTemplate } from '@components'
import { ContactManager, selectedContact } from '@core/contact'
import { localize } from '@core/i18n'
Expand Down Expand Up @@ -75,7 +75,7 @@
{#if features.contacts.addNetworkAddress.enabled}
<Button
variant="text"
icon={FlatIconName.Plus}
icon={IconName.Plus}
text={localize(
`views.dashboard.drawers.contactBook.${ContactBookRoute.ContactInformation}.addNetworkAddress`
)}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { FlatIconName, Button } from '@bloomwalletio/ui'
import { IconName, Button } from '@bloomwalletio/ui'
import { ContactCard, DrawerTemplate } from '@components'
import { ContactManager, IContact, clearSelectedContact, setSelectedContact } from '@core/contact'
import { localize } from '@core/i18n'
Expand Down Expand Up @@ -39,7 +39,7 @@
{#if features.contacts.addContact.enabled}
<Button
variant="text"
icon={FlatIconName.Plus}
icon={IconName.Plus}
text={localize(`views.dashboard.drawers.contactBook.${ContactBookRoute.ContactList}.addContact`)}
on:click={onAddContactClick}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { onMount } from 'svelte'
import { Button, FlatIconName } from '@bloomwalletio/ui'
import { Button, IconName } from '@bloomwalletio/ui'
import { DrawerTemplate } from '@components'
import { TextInput } from '@ui'
Expand Down Expand Up @@ -217,7 +217,7 @@
<Button
variant="text"
text={localize(`views.dashboard.drawers.contactBook.${ContactBookRoute.EditNetworkAddresses}.addAddress`)}
icon={FlatIconName.Plus}
icon={IconName.Plus}
width="full"
on:click={onAddNewAddressClick}
/>
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"author": "Charlie Varley <[email protected]>",
"license": "Apache-2.0",
"dependencies": {
"@bloomwalletio/ui": "0.7.7",
"@bloomwalletio/ui": "0.7.10",
"@iota/bundle": "1.0.0-beta.30",
"@iota/converter": "1.0.0-beta.30",
"@iota/crypto.js": "1.8.6",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -342,10 +342,10 @@
resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==

"@bloomwalletio/[email protected].7":
version "0.7.7"
resolved "https://npm.pkg.github.com/download/@bloomwalletio/ui/0.7.7/89751503c404fbc17e503e2bd0800fa405ea42bc#89751503c404fbc17e503e2bd0800fa405ea42bc"
integrity sha512-n29Nu/m/XJjM8DG0+5xCaIm7N9Eor4/LOpcA5JXd+qJODQmluHf2mu1TLgPqnpSbcpD0WljQUj02tGGBDXN/iQ==
"@bloomwalletio/[email protected].10":
version "0.7.10"
resolved "https://npm.pkg.github.com/download/@bloomwalletio/ui/0.7.10/517dde2cd81244de9848c41d202bc93d21bfd393#517dde2cd81244de9848c41d202bc93d21bfd393"
integrity sha512-7lfkfCAvpwQd6otDeSoLJ47RYNjvRwCcHJ9Y96EMq8nfRXfGfsR5aPJWDgqTFw2AW020k0YLK41WpXhgpUD0SQ==
dependencies:
"@floating-ui/dom" "1.4.3"
"@popperjs/core" "2.11.8"
Expand Down

0 comments on commit 7750883

Please sign in to comment.