feat(sidebar): add wallet top up card

This commit is contained in:
2026-06-29 13:22:50 +08:00
parent b03083bacd
commit 274fe87ced
4 changed files with 209 additions and 4 deletions
+4 -4
View File
@@ -10,9 +10,9 @@ import { useUserDispatch, useUserState } from "@/stores/user/user-context";
import {
BackBar,
SidebarWalletCard,
UserHeader,
type SidebarUserState,
VipBenefitsCard,
} from "./components";
import styles from "./components/sidebar-screen.module.css";
@@ -74,9 +74,9 @@ export function SidebarScreen() {
</section>
<section className={styles.cardSlot}>
<VipBenefitsCard
state={sidebarState}
onActivate={() => router.push(VIP_SUBSCRIPTION_URL)}
<SidebarWalletCard
creditBalance={user.creditBalance}
onTopUp={() => router.push(VIP_SUBSCRIPTION_URL)}
/>
</section>