refactor(mock): remove lib/mock fixtures and empty stores
This commit is contained in:
+2
-3
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user