bun run format

This commit is contained in:
2026-01-27 19:43:32 -03:00
parent 37f1b46306
commit e1864660a7
19 changed files with 115 additions and 121 deletions
+3 -10
View File
@@ -19,21 +19,14 @@ export const addPost = (post: Post) => {
posts.update((current) => [post, ...current]);
};
export const updatePostStore = (
postId: string,
updatedData: Partial<Post>
) => {
export const updatePostStore = (postId: string, updatedData: Partial<Post>) => {
posts.update((current) =>
current.map((post) =>
post.id === postId ? { ...post, ...updatedData } : post
)
current.map((post) => (post.id === postId ? { ...post, ...updatedData } : post))
);
};
export const removePost = (postId: string) => {
posts.update((current) =>
current.filter((post) => post.id !== postId)
);
posts.update((current) => current.filter((post) => post.id !== postId));
};
export const resetPosts = () => {