Skip to content

Commit

Permalink
Fixed lint issues (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpaten committed Nov 15, 2023
1 parent 47ed26d commit 807f59b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ function App(): JSX.Element {
return (
<div>
<main>
<LessonSide
levelNum={exerciseCount+1}
/>
<LessonSide levelNum={exerciseCount + 1} />
<ExerciseSide
incrementExercise={() => setExerciseCount(exerciseCount + 1)}
/>
Expand Down
8 changes: 6 additions & 2 deletions src/components/shared/LessonSide/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const exArray: { id: string; text: string }[] = [
},
];

function LessonSide(props: any): JSX.Element {
function LessonSide(levelNum: number): JSX.Element {
return (
<section id="lesson-side-container">
<div>
Expand All @@ -35,7 +35,11 @@ function LessonSide(props: any): JSX.Element {
<Turtle turtleID="your-genius" />

{/* passed from parent component */}
<LevelSelector numLevels={6} currentLevel={props.levelNum} maxLevelReached={6} />
<LevelSelector
numLevels={6}
currentLevel={levelNum}
maxLevelReached={6}
/>
</div>
<Footer />
</section>
Expand Down

0 comments on commit 807f59b

Please sign in to comment.