refactor(mock): remove lib/mock fixtures and empty stores
This commit is contained in:
+1
-2
@@ -1,5 +1,4 @@
|
||||
import { generateId } from "@/lib/id"
|
||||
import { mockFavorites } from "@/lib/mock"
|
||||
import type { Favorite } from "@/lib/types"
|
||||
import { create } from "zustand"
|
||||
|
||||
@@ -11,7 +10,7 @@ interface FavoriteState {
|
||||
}
|
||||
|
||||
export const useFavoriteStore = create<FavoriteState>((set, get) => ({
|
||||
favorites: mockFavorites,
|
||||
favorites: [],
|
||||
listFavoritesByUser: (userId) => get().favorites.filter((favorite) => favorite.userId === userId),
|
||||
isFavorited: (userId, targetType, targetId) =>
|
||||
get().favorites.some(
|
||||
|
||||
Reference in New Issue
Block a user