refactor(mock): remove lib/mock fixtures and empty stores

This commit is contained in:
zetaloop
2026-03-01 22:26:50 +08:00
parent d4e2c13a03
commit 9e64fb1201
27 changed files with 17 additions and 1941 deletions
+2 -3
View File
@@ -1,6 +1,5 @@
import { calculateOrderIncome } from "@/lib/domain/income"
import { generateId } from "@/lib/id"
import { mockTransactions, walletBalance } from "@/lib/mock"
import type { WalletTransaction } from "@/lib/types"
import { useShopStore } from "@/store/shops"
import { create } from "zustand"
@@ -17,8 +16,8 @@ interface WalletState {
}
export const useWalletStore = create<WalletState>((set, get) => ({
balance: walletBalance,
transactions: mockTransactions,
balance: 0,
transactions: [],
topUp: (amount) => {
if (!Number.isFinite(amount) || amount <= 0) return
const now = new Date().toISOString()