+
{text}
{isUser ? (
@@ -99,18 +107,31 @@ export function ChatMsg({
) : null
) : (
- {duration ? (
-
- ) : null}
-
-
onFeedback('like', messageId)}>
+ {duration ? : null}
+
+ onFeedback('like', messageId)}
+ >
- onFeedback('dislike', messageId)}>
+ onFeedback('dislike', messageId)}
+ >
- bodyRef.current?.innerHTML} content={text} isIcon format={'text/html'} />
-
+ bodyRef.current?.innerHTML}
+ content={text}
+ isIcon
+ format={'text/html'}
+ />
+
@@ -133,23 +154,35 @@ function IconButton({
}) {
return (
-
+
);
}
-export function ChatNotice({ content, duration }: { content: string, duration?: number }) {
+export function ChatNotice({
+ content,
+ duration,
+}: {
+ content: string;
+ duration?: number;
+}) {
const startTime = React.useRef(duration ? Date.now() - duration : Date.now());
const [activeDuration, setDuration] = React.useState(duration ?? 0);
React.useEffect(() => {
const interval = setInterval(() => {
- setDuration(Math.round((Date.now() - startTime.current)));
+ setDuration(Math.round(Date.now() - startTime.current));
}, 250);
return () => clearInterval(interval);
}, []);
return (
-
+
@@ -165,9 +198,7 @@ function MsgDuration({ duration }: { duration: number }) {
return (
-
- {durationFormatted(duration)}
-
+ {durationFormatted(duration)}
- )
+ );
}
diff --git a/frontend/app/layout/SideMenu.tsx b/frontend/app/layout/SideMenu.tsx
index 80dc0ce9e..bf4803160 100644
--- a/frontend/app/layout/SideMenu.tsx
+++ b/frontend/app/layout/SideMenu.tsx
@@ -15,7 +15,7 @@ import {
import { MODULES } from 'Components/Client/Modules';
import { Icon } from 'UI';
import SVG from 'UI/SVG';
-import { hasAi } from 'App/utils/split-utils'
+import { hasAi } from 'App/utils/split-utils';
import { useStore } from 'App/mstore';
import AnimatedSVG, { ICONS } from 'Shared/AnimatedSVG/AnimatedSVG';
diff --git a/frontend/app/mstore/searchStore.ts b/frontend/app/mstore/searchStore.ts
index 933335e57..03de2441b 100644
--- a/frontend/app/mstore/searchStore.ts
+++ b/frontend/app/mstore/searchStore.ts
@@ -398,7 +398,6 @@ class SearchStore {
force: boolean = false,
bookmarked: boolean = false,
): Promise
=> {
- console.log(this.searchInProgress)
if (this.searchInProgress) return;
const filter = this.instance.toSearch();