From e9ea75398ef7b83d6cf3c7145bb6ca1d3c3038d7 Mon Sep 17 00:00:00 2001
From: Nate Kelley
Date: Fri, 18 Apr 2025 15:49:47 -0600
Subject: [PATCH] pass up
---
.../AppMarkdown/AppMarkdownCommon.tsx | 17 +++++------------
.../useSelectedFile/useSelectedFile.ts | 2 ++
2 files changed, 7 insertions(+), 12 deletions(-)
diff --git a/web/src/components/ui/typography/AppMarkdown/AppMarkdownCommon.tsx b/web/src/components/ui/typography/AppMarkdown/AppMarkdownCommon.tsx
index 3806c8251..ecaa7fd03 100644
--- a/web/src/components/ui/typography/AppMarkdown/AppMarkdownCommon.tsx
+++ b/web/src/components/ui/typography/AppMarkdown/AppMarkdownCommon.tsx
@@ -39,8 +39,7 @@ export const CustomParagraph: React.FC<
className={cn(
'text-size-inherit!',
showLoader && 'animate-in fade-in transition-none duration-700'
- )}
- {...rest}>
+ )}>
{children}
);
@@ -57,8 +56,7 @@ export const CustomParagraph: React.FC<
className={cn(
'text-size-inherit!',
showLoader && 'animate-in fade-in transition-none duration-700'
- )}
- {...rest}>
+ )}>
{children}
);
@@ -94,8 +92,7 @@ export const CustomHeading: React.FC<
className={cn(
headingVariants({ level: stripFormatting ? 'base' : level }),
showLoader && 'animate-in fade-in transition-none duration-700'
- )}
- {...rest}>
+ )}>
{children}
);
@@ -192,9 +189,7 @@ export const CustomTable: React.FC<
} & ExtraPropsExtra
> = ({ children, markdown, showLoader, ...rest }) => {
return (
-
+
);
@@ -208,9 +203,7 @@ export const CustomSpan: React.FC<
} & ExtraPropsExtra
> = ({ children, markdown, showLoader, ...rest }) => {
return (
-
+
{children}
);
diff --git a/web/src/layouts/ChatLayout/ChatLayoutContext/useSelectedFile/useSelectedFile.ts b/web/src/layouts/ChatLayout/ChatLayoutContext/useSelectedFile/useSelectedFile.ts
index e1665a42e..d0a433927 100644
--- a/web/src/layouts/ChatLayout/ChatLayoutContext/useSelectedFile/useSelectedFile.ts
+++ b/web/src/layouts/ChatLayout/ChatLayoutContext/useSelectedFile/useSelectedFile.ts
@@ -44,6 +44,8 @@ export const useSelectedFile = ({
if (link) onChangePage(link);
}
+ console.log('handleFileCollapse', handleFileCollapse);
+
if (handleFileCollapse) {
animateOpenSplitter('left');
return;