From c9b4566e1ddf9c369e94eaf28a80cc08e2834388 Mon Sep 17 00:00:00 2001 From: "zeon-neon[bot]" <136533918+zeon-neon[bot]@users.noreply.github.com> Date: Fri, 6 Sep 2024 17:28:45 +0000 Subject: [PATCH] enhancement(lint): Fix lint errors for src/components/AboutPage/index.tsx Co-authored-by: NeonGamerBot-QK Signed-off-by: zeon-neon[bot] <136533918+zeon-neon[bot]@users.noreply.github.com> --- src/components/AboutPage/index.tsx | 130 ++++++++++++++++------------- 1 file changed, 73 insertions(+), 57 deletions(-) diff --git a/src/components/AboutPage/index.tsx b/src/components/AboutPage/index.tsx index ab6934e2..81892b3c 100644 --- a/src/components/AboutPage/index.tsx +++ b/src/components/AboutPage/index.tsx @@ -1,70 +1,86 @@ -import { mdiBullet } from '@mdi/js' -import Icon from '@mdi/react' -import { useEffect, useState } from 'react' +import { mdiBullet } from "@mdi/js"; +import Icon from "@mdi/react"; +import { useEffect, useState } from "react"; -export default function AboutPage () { - const [currentGrade, setCurrentGrade] = useState("0th") +export default function AboutPage() { + const [currentGrade, setCurrentGrade] = useState("0th"); useEffect(() => { - let year:number = new Date().getFullYear() + let year: number = new Date().getFullYear(); if (year > 2027) { -let result = year - 2027 - switch(result) { -case 0: - setCurrentGrade(`12th`) - break; - default: -setCurrentGrade(`Collage Student`) - break; + let result = year - 2027; + switch (result) { + case 0: + setCurrentGrade(`12th`); + break; + default: + setCurrentGrade(`Collage Student`); + break; } } else { - setCurrentGrade(`${Math.abs((2027 - 2024) - 13)}th`) + setCurrentGrade(`${Math.abs(2027 - 2024 - 13)}th`); } - }) - return
-
-

-Some info about me -

-
-
-

- Hi Everyone, I am{' '} - Saahil dutta, - from USA -
I am a {currentGrade} grader in KCD. -
-
- Apart from coding, some other activities that I love to do! -

-
    -
  • - Playing Games -
  • -
  • - Eating different types of food -
  • - {/*
  • + }); + return ( +
    +
    +

    + Some info about me +

    +
    +
    +

    + Hi Everyone, I am{" "} + Saahil dutta, + from USA +
    I am a {currentGrade} grader in KCD. +
    +
    + Apart from coding, some other activities that I love to do! +

    +
      +
    • + {" "} + Playing Games +
    • +
    • + {" "} + Eating different types of food +
    • + {/*
    • Traveling
    • */} -
    • - Swimming -
    • -
    +
  • + {" "} + Swimming +
  • +
-
- - - -

- "It has become appallingly obvious that our technology has exceeded - our humanity."{' '} -

-
- - Albert Einstein -
+
+ + + +

+ "It has become appallingly obvious that our technology has + exceeded our humanity."{" "} +

+ +
-
+
- + ); }