Skip to content

Commit

Permalink
frontend: fix react-scroll-to-bottom import (#853)
Browse files Browse the repository at this point in the history
Fix import
  • Loading branch information
danylo-boiko authored Nov 21, 2024
1 parent fa28503 commit 37a6e2d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

import { Transition } from '@headlessui/react';
import { usePrevious } from '@react-hookz/web';
import dynamic from 'next/dynamic';
import React, { ReactNode, memo, useEffect, useMemo } from 'react';
import ScrollToBottom, { useScrollToBottom, useSticky } from 'react-scroll-to-bottom';
import { useScrollToBottom, useSticky } from 'react-scroll-to-bottom';

import { MessageRow } from '@/components/MessageRow';
import { Welcome } from '@/components/MessagingContainer';
Expand All @@ -13,6 +14,8 @@ import { useSynthesizer } from '@/hooks/use-synthesizer';
import { ChatMessage, MessageType, StreamingMessage, isFulfilledMessage } from '@/types/message';
import { cn } from '@/utils';

const ScrollToBottom = dynamic(() => import('react-scroll-to-bottom'), { ssr: false });

type Props = {
isStreaming: boolean;
isStreamingToolEvents: boolean;
Expand Down

0 comments on commit 37a6e2d

Please sign in to comment.