Skip to content

Commit

Permalink
fix: removed reference to old ellipsis component
Browse files Browse the repository at this point in the history
  • Loading branch information
Vali-98 committed Nov 22, 2024
1 parent c3d8f72 commit 8dc6d00
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions app/components/ChatMenu/ChatWindow/ChatTextLast.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import AnimatedEllipsis from '@components/AnimatedEllipsis'
import { useInference } from '@constants/Chat'
import { Chats, MarkdownStyle, Style } from '@globals'
import { Chats, MarkdownStyle } from '@globals'
import { usePathname } from 'expo-router'
import { useEffect, useRef } from 'react'
import { View } from 'react-native'
import Markdown from 'react-native-markdown-display'
import Animated, { useAnimatedStyle, useSharedValue, withTiming } from 'react-native-reanimated'
//@ts-expect-error
import AnimatedEllipsis from 'rn-animated-ellipsis'
import { useShallow } from 'zustand/react/shallow'

type ChatTextProps = {
Expand Down Expand Up @@ -70,12 +69,7 @@ const ChatTextLast: React.FC<ChatTextProps> = ({ nowGenerating, id }) => {
<Animated.View style={[heightStyle, { overflow: 'scroll' }]}>
<View style={{ minHeight: 10 }} ref={viewRef}>
{swipeId === currentSwipeId && nowGenerating && buffer === '' && (
<AnimatedEllipsis
style={{
color: Style.getColor('primary-text2'),
fontSize: 20,
}}
/>
<AnimatedEllipsis />
)}
<Markdown
markdownit={MarkdownStyle.Rules}
Expand Down

0 comments on commit 8dc6d00

Please sign in to comment.