From b212a1ce53f6f1248392eac82cc3447caae6d2f0 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Fri, 25 Jul 2025 21:27:04 +0000 Subject: [PATCH] style: format code with Prettier This commit fixes the style issues introduced in b033fcb according to the output from Prettier. Details: None --- src/components/layout/MyHead.tsx | 6 +++++- src/components/sections/MinecraftProjects.tsx | 14 +++++-------- src/components/sections/Projects.tsx | 12 ++++++----- src/data.ts | 21 +++++-------------- 4 files changed, 22 insertions(+), 31 deletions(-) diff --git a/src/components/layout/MyHead.tsx b/src/components/layout/MyHead.tsx index 450912a..71e84d1 100644 --- a/src/components/layout/MyHead.tsx +++ b/src/components/layout/MyHead.tsx @@ -74,7 +74,11 @@ const HeadRender = () => {
)} - + setLoading(false)} /> diff --git a/src/components/sections/MinecraftProjects.tsx b/src/components/sections/MinecraftProjects.tsx index 96b6919..2e2c25c 100644 --- a/src/components/sections/MinecraftProjects.tsx +++ b/src/components/sections/MinecraftProjects.tsx @@ -1,5 +1,3 @@ - - import { useState, useEffect } from "react"; import { motion } from "framer-motion"; import { mcProjects } from "../../data"; @@ -57,9 +55,7 @@ const MinecraftProjects = () => { )}

{proj.short_info}

-

- {proj.description} -

+

{proj.description}

{ linkObj.name === "Github" ? "bg-[#5a4378] text-white hover:bg-[#5a4378]" : linkObj.name === "MCPEDL" - ? "bg-[#4a8a4a] text-white hover:bg-[#4a8a4a]" - : linkObj.name === "CurseForge" - ? "bg-[#f16436] text-white hover:bg-[#f16436]" - : "bg-[#333] text-white hover:bg-[#333]" + ? "bg-[#4a8a4a] text-white hover:bg-[#4a8a4a]" + : linkObj.name === "CurseForge" + ? "bg-[#f16436] text-white hover:bg-[#f16436]" + : "bg-[#333] text-white hover:bg-[#333]" }`} > {linkObj.name} diff --git a/src/components/sections/Projects.tsx b/src/components/sections/Projects.tsx index 7412556..8ed6ff3 100644 --- a/src/components/sections/Projects.tsx +++ b/src/components/sections/Projects.tsx @@ -1,4 +1,3 @@ - import { useState, useEffect } from "react"; import { motion } from "framer-motion"; import { Projects } from "../../data"; @@ -21,7 +20,10 @@ const ProjectsSection = () => {
{loading ? skeletons.map((_, i) => ( -
+
@@ -76,8 +78,8 @@ const ProjectsSection = () => { proj.status === "Live" ? "bg-green-500 bg-opacity-20 text-green-400 border border-green-500 border-opacity-30" : proj.status === "In Development" - ? "bg-yellow-500 bg-opacity-20 text-yellow-400 border border-yellow-500 border-opacity-30" - : "bg-blue-500 bg-opacity-20 text-blue-400 border border-blue-500 border-opacity-30" + ? "bg-yellow-500 bg-opacity-20 text-yellow-400 border border-yellow-500 border-opacity-30" + : "bg-blue-500 bg-opacity-20 text-blue-400 border border-blue-500 border-opacity-30" }`} > {proj.status} @@ -119,4 +121,4 @@ const ProjectsSection = () => { ); }; -export default ProjectsSection; \ No newline at end of file +export default ProjectsSection; diff --git a/src/data.ts b/src/data.ts index c560700..6ba1351 100644 --- a/src/data.ts +++ b/src/data.ts @@ -132,10 +132,7 @@ const mcProjects = [ }, ], downloads: "2.0M+", - imgs: [ - "/assets/mcProjs/tc.webp", - "/assets/mcProjs/tc/maxresdefault.webp", - ], + imgs: ["/assets/mcProjs/tc.webp", "/assets/mcProjs/tc/maxresdefault.webp"], }, { title: "Scary Myth Mobs", @@ -354,9 +351,7 @@ const mcProjects = [ link: "https://www.minecraft.net/en-us/marketplace/pdp?id=47c862c8-98c1-497c-94a5-3959eea3fec5", }, ], - imgs: [ - "/assets/mcProjs/dl/Demonic_Legends_Thumbnail.webp", - ], + imgs: ["/assets/mcProjs/dl/Demonic_Legends_Thumbnail.webp"], }, { title: "Fright Night", @@ -369,9 +364,7 @@ const mcProjects = [ link: "https://www.minecraft.net/en-us/marketplace/pdp?id=7ddad910-7c39-46c0-8e6d-8ed38f870d04", }, ], - imgs: [ - "/assets/mcProjs/fn/FrightNight_Thumbnail.webp", - ], + imgs: ["/assets/mcProjs/fn/FrightNight_Thumbnail.webp"], }, ]; @@ -446,9 +439,7 @@ const Projects = [ link: "https://wiki.bedrock.dev/", }, ], - imgs: [ - "/assets/Projs/wiki/wiki.webp", - ], + imgs: ["/assets/Projs/wiki/wiki.webp"], tags: ["Documentation", "Minecraft", "Community", "Education"], status: "Live", featured: false, @@ -469,9 +460,7 @@ const Projects = [ link: "https://today-notes.keyyard.xyz", }, ], - imgs: [ - "assets/Projs/today/4.webp", - ], + imgs: ["assets/Projs/today/4.webp"], tags: ["React", "PWA", "TypeScript", "Productivity"], status: "Inactive", featured: false,