From b1cb5140223998b1578d44cbe54281f0a834354c Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 28 Sep 2023 16:42:35 +0300 Subject: [PATCH] TW-683: Assets rework. Refactor --- TODO.md | 7 ------- src/app/store/assets/utils.ts | 8 -------- src/lib/notifications/components/index.ts | 1 - 3 files changed, 16 deletions(-) delete mode 100644 TODO.md diff --git a/TODO.md b/TODO.md deleted file mode 100644 index 307f24d2e..000000000 --- a/TODO.md +++ /dev/null @@ -1,7 +0,0 @@ -- Migrate IndexDB tokens into Redux -- `export { useSelector, dispatch } from 'app/store';` -- Minimize persisted data -- - Assets stored like balances (by keys) -- `useSlugsOf` -- `@deprecated isCollectibleTokenMetadata` -- diff --git a/src/app/store/assets/utils.ts b/src/app/store/assets/utils.ts index 9c3df3390..b3a0a12ca 100644 --- a/src/app/store/assets/utils.ts +++ b/src/app/store/assets/utils.ts @@ -1,5 +1,3 @@ -import { forkJoin, map } from 'rxjs'; - import { fetchTokensMetadata, isKnownChainId, TokenMetadataResponse } from 'lib/apis/temple'; import { fetchTzktAccountAssets, TzktAssetWithMeta, TzktAssetWithNoMeta, TzktTokenWithMeta } from 'lib/apis/tzkt'; import { toTokenSlug } from 'lib/assets'; @@ -29,12 +27,6 @@ export const loadAccountCollectibles = (account: string, chainId: string) => } ); -export const loadAccountCollectibles$ = (account: string, chainId: string) => - forkJoin([ - fetchTzktAccountAssets(account, chainId, false), - loadNoMetaOnTzktAccountAssets(account, chainId, false) - ]).pipe(map(([data1, data2]) => buildLoadAssetsResponse(data1, data2))); - interface NoMetaOnTzktAsset { slug: string; tzktAsset: TzktAssetWithNoMeta; diff --git a/src/lib/notifications/components/index.ts b/src/lib/notifications/components/index.ts index e595eb60a..b2a42c835 100644 --- a/src/lib/notifications/components/index.ts +++ b/src/lib/notifications/components/index.ts @@ -1,4 +1,3 @@ export { Notifications } from './notifications'; -export { NotificationsBell } from './bell'; export { NotificationsItem } from './item'; export { NotificationsSettings } from './settings';