From d949587c44e8bce7a139395ca4e2cf5cdf0fe839 Mon Sep 17 00:00:00 2001 From: Lucas Santana Date: Wed, 29 Jan 2025 11:34:43 -0300 Subject: [PATCH] =?UTF-8?q?fix:=20Ajustando=20visualiza=C3=A7=C3=A3o=20da?= =?UTF-8?q?=20hist=C3=B3ria?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../learning/ExerciseSuggestions.tsx | 4 +-- src/pages/student-dashboard/StoryPage.tsx | 36 ++++++++++--------- 2 files changed, 21 insertions(+), 19 deletions(-) diff --git a/src/components/learning/ExerciseSuggestions.tsx b/src/components/learning/ExerciseSuggestions.tsx index cb59511..6a242e4 100644 --- a/src/components/learning/ExerciseSuggestions.tsx +++ b/src/components/learning/ExerciseSuggestions.tsx @@ -85,9 +85,9 @@ export function ExerciseSuggestions({ storyId, storyText, readingMetrics }: Exer return (
-

+

ExercĂ­cios Sugeridos -

+
{generateExercises().map((exercise) => (
*/} +
+ {/* Depois do StoryMetrics */} + {recordings.length > 0 && ( + imp.includes('palavra')) + .map(imp => imp.match(/palavra "([^"]+)"/)?.[1]) + .filter(Boolean) as string[], + errorCount: getLatestRecording().error_count, + pauseCount: getLatestRecording().pause_count, + fluencyScore: getLatestRecording().fluency_score + }} + /> + )} {/* Dashboard de métricas */} {loadingRecordings ? ( @@ -931,7 +948,7 @@ export function StoryPage() {
) : recordings.length > 0 ? ( -
+

Dashboard de Leitura

- {/* Depois do StoryMetrics */} - {recordings.length > 0 && ( - imp.includes('palavra')) - .map(imp => imp.match(/palavra "([^"]+)"/)?.[1]) - .filter(Boolean) as string[], - errorCount: getLatestRecording().error_count, - pauseCount: getLatestRecording().pause_count, - fluencyScore: getLatestRecording().fluency_score - }} - /> - )} +
); } \ No newline at end of file