add setPendingCommentIndex

This commit is contained in:
plebbitor
2023-04-24 15:48:30 +02:00
parent 04cdd9f445
commit 661f925f07
9 changed files with 41 additions and 4 deletions
+3
View File
@@ -29,6 +29,9 @@ const useGeneralStore = create((set) => ({
pendingComment: '',
setPendingComment: (comment) => set({ pendingComment: comment }),
pendingCommentIndex: null,
setPendingCommentIndex: (index) => set({ pendingCommentIndex: index }),
publishedComment: '',
setPublishedComment: (comment) => set({ publishedComment: comment }),