Spaces:
Sleeping
Sleeping
Update web/src/components/ChatArea.tsx
Browse files
web/src/components/ChatArea.tsx
CHANGED
|
@@ -121,8 +121,6 @@ interface ChatAreaProps {
|
|
| 121 |
showReviewBanner?: boolean;
|
| 122 |
|
| 123 |
onReviewActivity?: (event: ReviewEventType) => void;
|
| 124 |
-
|
| 125 |
-
// ✅ NEW: pass through for feedback submission
|
| 126 |
currentUserId?: string; // backend user_id
|
| 127 |
docType?: string; // backend doc_type (optional)
|
| 128 |
}
|
|
@@ -165,8 +163,6 @@ export function ChatArea({
|
|
| 165 |
availableCourses = [],
|
| 166 |
showReviewBanner = false,
|
| 167 |
onReviewActivity,
|
| 168 |
-
|
| 169 |
-
// ✅ NEW
|
| 170 |
currentUserId,
|
| 171 |
docType,
|
| 172 |
}: ChatAreaProps) {
|
|
@@ -871,8 +867,6 @@ export function ChatArea({
|
|
| 871 |
showNextButton={message.showNextButton && !isAppTyping}
|
| 872 |
onNextQuestion={onNextQuestion}
|
| 873 |
chatMode={chatMode}
|
| 874 |
-
|
| 875 |
-
// ✅ NEW: required for feedback submission
|
| 876 |
currentUserId={currentUserId}
|
| 877 |
learningMode={learningMode}
|
| 878 |
docType={docType}
|
|
|
|
| 121 |
showReviewBanner?: boolean;
|
| 122 |
|
| 123 |
onReviewActivity?: (event: ReviewEventType) => void;
|
|
|
|
|
|
|
| 124 |
currentUserId?: string; // backend user_id
|
| 125 |
docType?: string; // backend doc_type (optional)
|
| 126 |
}
|
|
|
|
| 163 |
availableCourses = [],
|
| 164 |
showReviewBanner = false,
|
| 165 |
onReviewActivity,
|
|
|
|
|
|
|
| 166 |
currentUserId,
|
| 167 |
docType,
|
| 168 |
}: ChatAreaProps) {
|
|
|
|
| 867 |
showNextButton={message.showNextButton && !isAppTyping}
|
| 868 |
onNextQuestion={onNextQuestion}
|
| 869 |
chatMode={chatMode}
|
|
|
|
|
|
|
| 870 |
currentUserId={currentUserId}
|
| 871 |
learningMode={learningMode}
|
| 872 |
docType={docType}
|