feat: Mudando nome do app de Histórias Mágicas para Leiturama

This commit is contained in:
Lucas Santana 2025-01-16 08:49:56 -03:00
parent a975e2486b
commit bd58cbad7d
2 changed files with 5 additions and 1 deletions

View File

@ -156,7 +156,7 @@ export function StoryGenerator() {
// Track story generation
const selectedTheme = themes?.find(t => t.id === choices.theme_id)?.title || '';
const generationTime = Date.now() - startTime.current;
const wordCount = updatedStory.content.pages.reduce((acc, page) =>
const wordCount = updatedStory.content.pages.reduce((acc: number, page: { text: string }) =>
acc + page.text.split(/\s+/).length, 0);
trackStoryGenerated({

View File

@ -138,18 +138,22 @@ export function ExercisePage() {
<WordFormation
words={exerciseWords.map(w => w.word)}
storyId={storyId as string}
studentId={exerciseData.story.student_id}
/>
);
case 'sentence-completion':
return (
<SentenceCompletion
story={exerciseData.story}
studentId={exerciseData.story.student_id}
/>
);
case 'pronunciation-practice':
return (
<PronunciationPractice
words={exerciseWords.map(w => w.word)}
storyId={storyId as string}
studentId={exerciseData.story.student_id}
/>
);
default: