-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(comments): support pending comments in state and UI
- **src/redux/comments/index.ts**: - Added `comments` and `pendingComments` to the state. - Introduced reducers: `addComment`, `addPendingComment`, and `updateCommentStatus`. - Added respective actions to `commentsSlice`. - **src/sections/publication/publication-details-comment-form.tsx**: - Implemented logic to handle pending comments. - Dispatch `addPendingComment` upon submission. - Updated comment status to "confirmed" after successful posting. - **src/sections/publication/publication-comments-list.tsx**: - Introduced `pendingComments` integration into the comment list. - Pending comments are displayed at the top of the list.
- Loading branch information
Showing
3 changed files
with
89 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters