mirror of
https://github.com/lucasrcsantana/story-generator.git
synced 2025-12-17 05:47:52 +00:00
feat: Mudando nome do app de Histórias Mágicas para Leiturama
This commit is contained in:
parent
a975e2486b
commit
bd58cbad7d
@ -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({
|
||||
|
||||
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user