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
|
// 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({
|
||||||
|
|||||||
@ -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:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user