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 { mockPosts } from "@/lib/mock"
|
||||
import type { Post, User, UserRole } from "@/lib/types"
|
||||
import { create } from "zustand"
|
||||
|
||||
@@ -22,7 +21,7 @@ interface PostState {
|
||||
}
|
||||
|
||||
export const usePostStore = create<PostState>((set) => ({
|
||||
posts: mockPosts,
|
||||
posts: [],
|
||||
createPost: (input) => {
|
||||
const post: Post = {
|
||||
id: generateId("post"),
|
||||
|
||||
Reference in New Issue
Block a user