fixed linting issues

This commit is contained in:
Niharika Goulikar
2024-11-26 12:28:16 +00:00
parent e9a2b8f03a
commit faf031ce80
2 changed files with 12 additions and 25 deletions

View File

@@ -430,11 +430,7 @@ const ConversationBubble = forwardRef<
? 'group-hover:lg:visible'
: ''
}
${
feedback === 'DISLIKE' && type !== 'ERROR'
? ' hidden'
: ''
}`}
${feedback === 'DISLIKE' && type !== 'ERROR' ? 'hidden' : ''}`}
>
<div>
<div
@@ -450,13 +446,12 @@ const ConversationBubble = forwardRef<
isLikeClicked || feedback === 'LIKE'
? 'fill-white-3000 stroke-purple-30 dark:fill-transparent'
: 'fill-none stroke-gray-4000'
} `}
}`}
onClick={() => {
if(feedback===undefined){
console.log("liked")
handleFeedback?.('LIKE');
setIsLikeClicked(true);
setIsDislikeClicked(false);
if (feedback === undefined) {
handleFeedback?.('LIKE');
setIsLikeClicked(true);
setIsDislikeClicked(false);
}
}}
onMouseEnter={() => setIsLikeHovered(true)}
@@ -470,13 +465,9 @@ const ConversationBubble = forwardRef<
!isDislikeClicked ? 'lg:invisible' : ''
} ${
feedback === 'DISLIKE' || type !== 'ERROR'
? ' group-hover:lg:visible'
? 'group-hover:lg:visible'
: ''
} ${
feedback === 'LIKE' && type !== 'ERROR'
? ' hidden'
: ''
} `}
} ${feedback === 'LIKE' && type !== 'ERROR' ? ' hidden' : ''} `}
>
<div>
<div
@@ -493,10 +484,10 @@ const ConversationBubble = forwardRef<
: 'fill-none stroke-gray-4000'
}`}
onClick={() => {
if(feedback===undefined){
handleFeedback?.('DISLIKE');
setIsDislikeClicked(true);
setIsLikeClicked(false);
if (feedback === undefined) {
handleFeedback?.('DISLIKE');
setIsDislikeClicked(true);
setIsLikeClicked(false);
}
}}
onMouseEnter={() => setIsDislikeHovered(true)}