From 4d234af0bdd0d83e2db85863a82b1c897ed0ccb5 Mon Sep 17 00:00:00 2001 From: ChoiWonkeun Date: Thu, 27 Nov 2025 23:42:15 +0900 Subject: [PATCH] fix: resolve Icon lint issue in home page --- src/features/home/Home.jsx | 96 +++++++++++++++++++------------------- 1 file changed, 49 insertions(+), 47 deletions(-) diff --git a/src/features/home/Home.jsx b/src/features/home/Home.jsx index 8d23cfc..a157149 100644 --- a/src/features/home/Home.jsx +++ b/src/features/home/Home.jsx @@ -1,4 +1,3 @@ -// src/pages/Home.jsx import { Link } from "react-router-dom"; import { IconCode, IconChecklist, IconUserScan } from "@tabler/icons-react"; import Particles from "@tsparticles/react"; @@ -6,6 +5,7 @@ import { particlesOptions, particlesVersion } from "@/config/particles"; import { useParticlesInit } from "../../shared/hooks/useParticlesInit"; const BRAND = "SkillBoost"; + const items = [ { title: "Coding Test", href: "/coding", icon: IconCode }, { title: "Code Review", href: "/review", icon: IconChecklist }, @@ -15,9 +15,7 @@ const items = [ export default function Home() { const init = useParticlesInit(); - if (!init) { - return null; - } + if (!init) return null; return (
@@ -32,9 +30,8 @@ export default function Home() {

{BRAND}

@@ -44,53 +41,58 @@ export default function Home() {
- {items.map(({ title, href, icon: Icon }) => ( - - { + const Icon = icon; // πŸ”₯ ESLintκ°€ ν™•μ‹€νžˆ μΈμ‹ν•˜κ²Œ λͺ…μ‹œμ μœΌλ‘œ μ§€μ • + + return ( + - - - - - {title} + + + + + + + {title} + - - - ))} + + ); + })}
); -} \ No newline at end of file +}