mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-15 09:32:22 +03:00
fix(frontend): remove thoughts button (#2892)
# Description Please include a summary of the changes and the related issue. Please also include relevant motivation and context. ## Checklist before requesting a review Please delete options that are not relevant. - [ ] My code follows the style guidelines of this project - [ ] I have performed a self-review of my code - [ ] I have commented hard-to-understand areas - [ ] I have ideally added tests that prove my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged ## Screenshots (if appropriate):
This commit is contained in:
parent
7eba571306
commit
2f7dfb48da
@ -5,7 +5,6 @@ import { useChat } from "@/app/chat/[chatId]/hooks/useChat";
|
||||
import { useChatApi } from "@/lib/api/chat/useChatApi";
|
||||
import { CopyButton } from "@/lib/components/ui/CopyButton";
|
||||
import Icon from "@/lib/components/ui/Icon/Icon";
|
||||
import { ThoughtsButton } from "@/lib/components/ui/ThoughtsButton";
|
||||
import { Source } from "@/lib/types/MessageMetadata";
|
||||
|
||||
import styles from "./MessageRow.module.scss";
|
||||
@ -116,9 +115,6 @@ export const MessageRow = ({
|
||||
sourceFiles.length === 0 ? styles.with_border : ""
|
||||
}`}
|
||||
>
|
||||
{metadata?.thoughts && metadata.thoughts.trim() !== "" && (
|
||||
<ThoughtsButton text={metadata.thoughts} size="small" />
|
||||
)}
|
||||
<CopyButton handleCopy={handleCopy} size="small" />
|
||||
<Icon
|
||||
name="thumbsUp"
|
||||
|
@ -8,7 +8,7 @@
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: Spacings.$spacing04;
|
||||
padding-left: Spacings.$spacing09;
|
||||
padding-inline: Spacings.$spacing09;
|
||||
border-bottom: 1px solid var(--border-1);
|
||||
height: Variables.$pageHeaderHeight;
|
||||
width: 100%;
|
||||
|
@ -1,21 +0,0 @@
|
||||
import Icon from "@/lib/components/ui/Icon/Icon";
|
||||
import Tooltip from "@/lib/components/ui/Tooltip/Tooltip";
|
||||
import { IconSize } from "@/lib/types/Icons";
|
||||
|
||||
type ThoughtsButtonProps = {
|
||||
text: string;
|
||||
size: IconSize;
|
||||
};
|
||||
|
||||
export const ThoughtsButton = ({
|
||||
text,
|
||||
size,
|
||||
}: ThoughtsButtonProps): JSX.Element => {
|
||||
return (
|
||||
<Tooltip tooltip={`How did I get here?\n\n${text}`}>
|
||||
<div>
|
||||
<Icon name="eureka" size={size} color="black" handleHover={true} />
|
||||
</div>
|
||||
</Tooltip>
|
||||
);
|
||||
};
|
Loading…
Reference in New Issue
Block a user