Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
SanjnaT41756 committed Apr 25, 2024
1 parent 5c9c451 commit 06a1956
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 21 deletions.
2 changes: 1 addition & 1 deletion src/components/shared/LessonSide/LessonSide.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<section id="lesson-side-container">
Expand Down
25 changes: 5 additions & 20 deletions src/components/shared/LessonSide/Turtle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 06a1956

Please sign in to comment.