Skip to content

Commit

Permalink
rename + cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkNerdi committed Feb 27, 2024
1 parent c6071b9 commit a3d8856
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 84 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
} from '@ui'
import {
ActivityType,
getActivityActionColor,
getActivityActionTextColor,
getActivityActionPill,
getActivityTileAction,
getActivityTileAsset,
Expand Down Expand Up @@ -40,7 +40,7 @@
? getNftByIdFromAllAccountNfts($selectedAccountIndex, activity.nftId)
: undefined)
$: color = getActivityActionColor(activity)
$: color = getActivityActionTextColor(activity)
$: pill = getActivityActionPill(activity, $time)
</script>

Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { TextColor } from '@bloomwalletio/ui'
import { Activity, ActivityAction, ActivityDirection, ActivityType, GovernanceAction } from '@core/activity'

export function getActivityActionColor(activity: Activity): TextColor {
export function getActivityActionTextColor(activity: Activity): TextColor {
const { type, direction, action } = activity

if (type === ActivityType.Basic && activity.isShimmerClaiming) {
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/src/lib/core/activity/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export * from './generateSingleFoundryActivity'
export * from './generateSingleGovernanceActivity'
export * from './generateSingleNftActivity'
export * from './getActivityDetailsTitle'
export * from './getActivityActionColor'
export * from './getActivityActionTextColor'
export * from './getActivityActionPill'
export * from './getActivityTileAction'
export * from './getActivityTileAsset'
Expand Down

0 comments on commit a3d8856

Please sign in to comment.