diff --git a/app/(tabs)/chat.tsx b/app/(tabs)/chat.tsx index 1bccbea..cca8acb 100644 --- a/app/(tabs)/chat.tsx +++ b/app/(tabs)/chat.tsx @@ -732,7 +732,7 @@ export default function ChatScreen() { {isVoice && ( - + 🎤 )} @@ -764,7 +764,34 @@ export default function ChatScreen() { - + { + Alert.alert( + 'Clear Chat', + 'Are you sure you want to clear all messages?', + [ + { text: 'Cancel', style: 'cancel' }, + { + text: 'Clear', + style: 'destructive', + onPress: () => { + setMessages([ + { + id: '1', + role: 'assistant', + content: 'Hello! I\'m Julia, your AI wellness assistant. You can type a message or tap the phone button to start a voice call.', + timestamp: new Date(), + }, + ]); + }, + }, + ] + ); + }} + > + + {/* Beneficiary Picker Modal */} @@ -972,12 +999,7 @@ const styles = StyleSheet.create({ fontSize: FontSizes.sm, color: AppColors.success, }, - headerButtons: { - flexDirection: 'row', - alignItems: 'center', - gap: Spacing.sm, - }, - headerButton: { + eraseButton: { padding: Spacing.xs, }, chatContainer: { @@ -1175,6 +1197,9 @@ const styles = StyleSheet.create({ top: 6, right: 6, }, + voiceIndicatorEmoji: { + fontSize: 10, + }, // System message styles systemMessageContainer: { flexDirection: 'row',