Skip to content

Commit

Permalink
add fiat value + fix colors
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkNerdi committed Feb 27, 2024
1 parent 299aacd commit c6071b9
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
}
function getFormattedMarketPrice(_activity: Activity): string | undefined {
if ((_activity.type === ActivityType.Basic || _activity.type === ActivityType.Foundry) && token) {
if ([ActivityType.Basic, ActivityType.Governance, ActivityType.Foundry].includes(_activity.type) && token) {
const amount = _activity.tokenTransfer?.rawAmount ?? _activity.baseTokenTransfer.rawAmount
const marketPrice = getFiatValueFromTokenAmount(amount, token)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@
<Avatar
icon={IconName.FileCode}
size="lg"
textColor="brand"
textColor="primary"
backgroundColor={$darkMode ? 'surface-2-dark' : 'surface-2'}
/>
{:else if activity.type === ActivityType.Alias}
<Avatar
icon={IconName.Alias}
size="lg"
textColor="brand"
textColor="primary"
backgroundColor={$darkMode ? 'surface-2-dark' : 'surface-2'}
/>
{/if}
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": "Bloom Labs Ltd <[email protected]>",
"license": "Apache-2.0",
"dependencies": {
"@bloomwalletio/ui": "0.20.7",
"@bloomwalletio/ui": "0.20.8",
"@ethereumjs/rlp": "4.0.1",
"@ethereumjs/tx": "5.2.1",
"@ethereumjs/util": "9.0.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
<Avatar
icon={ICONS_FOR_ACTION[governanceAction]}
{size}
textColor="brand"
textColor="primary"
backgroundColor={$darkMode ? 'surface-2-dark' : 'surface-2'}
/>
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -343,10 +343,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.20.7"
resolved "https://npm.pkg.github.com/download/@bloomwalletio/ui/0.20.7/4554c0e4a10afbf4c3fa44429e4fcdb6564cd2ab#4554c0e4a10afbf4c3fa44429e4fcdb6564cd2ab"
integrity sha512-wEfRZX9M+7Kfolcl1hDhzpvnJWo/gRS5/Nb4WZ2XXKHJuTaCIZ+6dXzNTsMv271wsFjDqUEWPjHUMKlVhDbv4g==
"@bloomwalletio/[email protected].8":
version "0.20.8"
resolved "https://npm.pkg.github.com/download/@bloomwalletio/ui/0.20.8/c315895a962b23263da7fe5e91ddff0eb61fb9db#c315895a962b23263da7fe5e91ddff0eb61fb9db"
integrity sha512-jwailq9C48f4R+ID3wnzzC+A7KKSMI6TUM/HAX7St/qwhruK583wof05ci6JAkEnJKkj4Y6pGE5i4eHB+s48aQ==
dependencies:
"@floating-ui/dom" "1.4.3"
"@popperjs/core" "2.11.8"
Expand Down

0 comments on commit c6071b9

Please sign in to comment.