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 // Track story generation
const selectedTheme = themes?.find(t => t.id === choices.theme_id)?.title || ''; const selectedTheme = themes?.find(t => t.id === choices.theme_id)?.title || '';
const generationTime = Date.now() - startTime.current; 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); acc + page.text.split(/\s+/).length, 0);
trackStoryGenerated({ trackStoryGenerated({

View File

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