refactor(mock): remove lib/mock fixtures and empty stores
This commit is contained in:
+1
-2
@@ -1,4 +1,3 @@
|
||||
import { mockShops } from "@/lib/mock"
|
||||
import type { Shop, ShopSection } from "@/lib/types"
|
||||
import { create } from "zustand"
|
||||
|
||||
@@ -11,7 +10,7 @@ interface ShopState {
|
||||
}
|
||||
|
||||
export const useShopStore = create<ShopState>((set) => ({
|
||||
shops: mockShops,
|
||||
shops: [],
|
||||
updateShop: (shopId, patch) =>
|
||||
set((state) => ({
|
||||
shops: state.shops.map((shop) => (shop.id === shopId ? { ...shop, ...patch } : shop)),
|
||||
|
||||
Reference in New Issue
Block a user