Skip to content

Commit

Permalink
Fixed small bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
bhujoshi committed Mar 17, 2024
1 parent e0e8ab8 commit 701eb81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions components/ChatCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const ChatCard = ({ sender, userData, message, navigation }) => {
if (token === '\n' || !token) return null;
if (token.startsWith('```'))
return (
<>
<View key={index}>
<View style={styles.codeContainer}>
{token
.replace(/```/g, '')
Expand All @@ -61,7 +61,7 @@ const ChatCard = ({ sender, userData, message, navigation }) => {
name="Click to save"
colors={colors}
/>
</>
</View>
);
return <Text key={index}>{token}</Text>;
})}
Expand Down
4 changes: 1 addition & 3 deletions screens/ChatSessionScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@ const ChatSessionScreen = ({ navigation }) => {
console.error('Error sending message', error);
setIsLoading(false);
}
// setMessages([...messages, newMessage]);
// setInputText('');
};

return (
Expand All @@ -90,7 +88,7 @@ const ChatSessionScreen = ({ navigation }) => {
navigation={navigation}
/>
))}
<ActivityIndicator animating={isLoading} size="large" color="#bae0ff" />
<ActivityIndicator animating={isLoading} size="large" color="#ff7875" />
</ScrollView>
<View style={styles.inputContainer}>
<TextInput
Expand Down

0 comments on commit 701eb81

Please sign in to comment.