From 2fbff72149b96c17310b4142ba5e1d8d4c5e86fd Mon Sep 17 00:00:00 2001 From: Jonah Paten Date: Tue, 21 Nov 2023 18:44:52 -0800 Subject: [PATCH] Fixed props error #76 (#77) --- src/components/App.tsx | 2 +- .../shared/LessonSide/{index.tsx => LessonSide.tsx} | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) rename src/components/shared/LessonSide/{index.tsx => LessonSide.tsx} (93%) diff --git a/src/components/App.tsx b/src/components/App.tsx index b105e45..feaf556 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -1,7 +1,7 @@ import { useState } from 'react'; import CongratsPage from './shared/Congratulations'; import ExerciseSide from './shared/ExerciseSide'; -import LessonSide from './shared/LessonSide'; +import LessonSide from './shared/LessonSide/LessonSide'; import '../assets/WestwoodSans-Regular.ttf'; function App(): JSX.Element { diff --git a/src/components/shared/LessonSide/index.tsx b/src/components/shared/LessonSide/LessonSide.tsx similarity index 93% rename from src/components/shared/LessonSide/index.tsx rename to src/components/shared/LessonSide/LessonSide.tsx index 035488f..12aa362 100644 --- a/src/components/shared/LessonSide/index.tsx +++ b/src/components/shared/LessonSide/LessonSide.tsx @@ -17,7 +17,11 @@ const exArray: { id: string; text: string }[] = [ }, ]; -function LessonSide(levelNum: number): JSX.Element { +interface lessonSideProps { + levelNum: number; +} + +function LessonSide({ levelNum }: lessonSideProps): JSX.Element { return (