@@ -110,7 +131,6 @@ export const CommentView = ({ comment, lastComment }) => {
className="d-flex align-items-center"
type="button"
onClick={handleToggleLike}
- disabled={!token}
>
{commentLikes.includes(userId) ? (
@@ -119,6 +139,19 @@ export const CommentView = ({ comment, lastComment }) => {
)}
{commentLikes.length}
+
+
+
+ }
+ />
+
+
)}
diff --git a/src/features/questions/questions-list/question-actions/FavoritePopover.jsx b/src/features/questions/questions-list/question-actions/FavoritePopover.jsx
index 9f0a44f..a9229d9 100644
--- a/src/features/questions/questions-list/question-actions/FavoritePopover.jsx
+++ b/src/features/questions/questions-list/question-actions/FavoritePopover.jsx
@@ -1,14 +1,18 @@
import { Popover } from 'antd';
import { useAuth } from 'common/context/Auth/useAuth';
import PropTypes from 'prop-types';
-import FavoritePopoverContent from './FavoritePopoverContent';
+import FavoritePopoverContent from 'components/FavoritePopoverContent';
export const FavoritePopover = ({ children }) => {
const { token } = useAuth();
if (!token) {
return (
-
+ }
+ >
{children}
);