From c0d2663df92d2935ec2ddc2010ecce95bb50d93a Mon Sep 17 00:00:00 2001 From: DIYgod Date: Thu, 26 Sep 2024 02:45:47 +0800 Subject: [PATCH] feat: display subs and earn for lists list --- .../src/modules/settings/tabs/lists.tsx | 36 +++++++++---------- locales/settings/en.json | 6 ++-- packages/shared/src/hono.ts | 2 ++ 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/apps/renderer/src/modules/settings/tabs/lists.tsx b/apps/renderer/src/modules/settings/tabs/lists.tsx index da4865bff..9fbfed82e 100644 --- a/apps/renderer/src/modules/settings/tabs/lists.tsx +++ b/apps/renderer/src/modules/settings/tabs/lists.tsx @@ -42,6 +42,7 @@ import { apiClient } from "~/lib/api-fetch" import { cn, isBizId } from "~/lib/utils" import type { ListModel } from "~/models" import { ViewSelectorRadioGroup } from "~/modules/shared/ViewSelectorRadioGroup" +import { Balance } from "~/modules/wallet/balance" import { Queries } from "~/queries" import { feedActions, getFeedById, useFeedById } from "~/store/feed" import { useSubscriptionStore } from "~/store/subscription" @@ -78,16 +79,11 @@ export const SettingLists = () => { {t.settings("lists.title")} - - {t.settings("lists.view")} - - - {t.settings("lists.fee.label")} - - - - {t.common("words.actions")} - + {t.settings("lists.view")} + {t.settings("lists.fee.label")} + {t.settings("lists.subscriptions")} + {t.settings("lists.earnings")} + {t.common("words.actions")} @@ -107,22 +103,22 @@ export const SettingLists = () => { {row.title} - -
- {t(views[row.view].name)} - - {views[row.view].icon} - -
+ + + {views[row.view].icon} + - +
{row.fee}
- - + {row.subscriptionCount} + + {BigInt(row.purchaseAmount || 0n)} + +