mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 16:43:16 +00:00
fixed linting issues
This commit is contained in:
@@ -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)}
|
||||
|
||||
Reference in New Issue
Block a user