diff --git a/apps/nextjs/src/components/AppComponents/Chat/chat-right-hand-side-lesson.tsx b/apps/nextjs/src/components/AppComponents/Chat/chat-right-hand-side-lesson.tsx index 5be3e7430..cfda0035d 100644 --- a/apps/nextjs/src/components/AppComponents/Chat/chat-right-hand-side-lesson.tsx +++ b/apps/nextjs/src/components/AppComponents/Chat/chat-right-hand-side-lesson.tsx @@ -29,9 +29,6 @@ const ChatRightHandSideLesson = ({ const [showScrollButton, setShowScrollButton] = useState(false); - // This retains this existing bug, but is fixed on subsequent PRs - const sectionRefs = {}; - const scrollToBottom = () => { if (chatEndRef.current) { setShowScrollButton(false); @@ -57,16 +54,13 @@ const ChatRightHandSideLesson = ({ return (
- + @@ -87,12 +81,10 @@ const ChatRightHandSideLesson = ({
1 && showLessonMobile ? "flex" : "hidden"} fixed bottom-20 left-0 right-0 items-center justify-center duration-150 sm:hidden`} + className={`${messages.length > 1 && showLessonMobile ? "flex" : "hidden"} fixed bottom-20 left-0 right-0 items-center justify-center duration-150 sm:hidden`} >
+
); }; diff --git a/apps/nextjs/src/components/AppComponents/Chat/export-buttons/index.tsx b/apps/nextjs/src/components/AppComponents/Chat/export-buttons/index.tsx index 671e9ee56..7b1848a30 100644 --- a/apps/nextjs/src/components/AppComponents/Chat/export-buttons/index.tsx +++ b/apps/nextjs/src/components/AppComponents/Chat/export-buttons/index.tsx @@ -11,14 +11,10 @@ import { useDialog } from "../../DialogContext"; import { LessonPlanProgressDropdown } from "./LessonPlanProgressDropdown"; export type ExportButtonsProps = Readonly<{ - sectionRefs: Record>; documentContainerRef: React.MutableRefObject; }>; -const ExportButtons = ({ - sectionRefs, - documentContainerRef, -}: ExportButtonsProps) => { +const ExportButtons = ({ documentContainerRef }: ExportButtonsProps) => { const chat = useLessonChat(); const { id, isStreaming, lessonPlan } = chat; const { trackEvent } = useAnalytics(); @@ -26,13 +22,12 @@ const ExportButtons = ({ const demo = useDemoUser(); return ( -
+