mirror of
https://github.com/snowykami/neo-blog.git
synced 2025-09-26 11:06:23 +00:00
Refactor comment system:
- Update comment API to handle private comments and improve request structure. - Remove unused CSS animations and components related to comments. - Implement new comment input and item components with enhanced functionality including editing and private comment options. - Integrate user profile navigation and improve user experience with better feedback on actions (like, delete, edit). - Update localization for new features and ensure consistency in comment handling. - Introduce checkbox for private comments in the comment input.
This commit is contained in:
@ -12,11 +12,11 @@ export function useToLogin() {
|
||||
}
|
||||
}
|
||||
|
||||
export function clickToUserprofile(username: string) {
|
||||
const router = useRouter()
|
||||
return () => {
|
||||
router.push(`/user/${username}`)
|
||||
}
|
||||
export function useToUserProfile() {
|
||||
const router = useRouter();
|
||||
return (username: string) => {
|
||||
router.push(`/u/${username}`);
|
||||
};
|
||||
}
|
||||
|
||||
export function clickToPost(postId: number) {
|
||||
|
Reference in New Issue
Block a user