From 06a195666ff9866958fc00ab114c23b6c96de155 Mon Sep 17 00:00:00 2001 From: SanjnaT41756 Date: Wed, 24 Apr 2024 20:13:17 -0700 Subject: [PATCH] fix lint --- .../shared/LessonSide/LessonSide.tsx | 2 +- src/components/shared/LessonSide/Turtle.tsx | 25 ++++--------------- 2 files changed, 6 insertions(+), 21 deletions(-) diff --git a/src/components/shared/LessonSide/LessonSide.tsx b/src/components/shared/LessonSide/LessonSide.tsx index dcf7806..252106f 100644 --- a/src/components/shared/LessonSide/LessonSide.tsx +++ b/src/components/shared/LessonSide/LessonSide.tsx @@ -22,7 +22,7 @@ function LessonSide({ maxLevel, }: lessonSideProps): JSX.Element { const lesson_info = LessonSideContent[levelNum] || []; - const randomTurtleMessage = getRandomNumber(1, 7) + const randomTurtleMessage = getRandomNumber(1, 7); // console.log("max:" + maxLevel); return (
diff --git a/src/components/shared/LessonSide/Turtle.tsx b/src/components/shared/LessonSide/Turtle.tsx index bc941f5..0262912 100644 --- a/src/components/shared/LessonSide/Turtle.tsx +++ b/src/components/shared/LessonSide/Turtle.tsx @@ -15,28 +15,13 @@ interface TurtleData { } const turtleIDs: TurtleData = { - 1: [ - encouragingTurtleFullPoints, - 'Turtle saying Full points for you!', - ], + 1: [encouragingTurtleFullPoints, 'Turtle saying Full points for you!'], 2: [encouragingTurtle, 'Turtle saying You can do it!'], - 3: [ - encouragingTurtleSkills, - 'Turtle saying Your skills are numerous!', - ], - 4: [ - encouragingTurtleGenius, - "Turtle saying There's no end to your genius!", - ], + 3: [encouragingTurtleSkills, 'Turtle saying Your skills are numerous!'], + 4: [encouragingTurtleGenius, "Turtle saying There's no end to your genius!"], 5: [encouragingTurtleNiceGoing, 'Turtle saying Nice going!'], - 6: [ - encouragingTurtleWork, - "Turtle saying I'm drawn to your work!", - ], - 7: [ - encouragingTurtleSuccess, - 'Turtle saying A large degree of success!', - ], + 6: [encouragingTurtleWork, "Turtle saying I'm drawn to your work!"], + 7: [encouragingTurtleSuccess, 'Turtle saying A large degree of success!'], }; function Turtle({ turtleID }: TurtleProps): JSX.Element {