Skip to content

Commit

Permalink
Refactor: ul 중복 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
cdm1263 committed Jul 17, 2024
1 parent c806de4 commit abd5f7d
Showing 1 changed file with 16 additions and 18 deletions.
34 changes: 16 additions & 18 deletions src/components/dex/PokemonDexElementLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,24 +34,22 @@ const PokemonDexElementLayout = ({
};

return (
<ul>
<motion.li
whileHover={{
scale: 1.02,
boxShadow: `rgba(0, 0, 0, 0.10) 0px 3px 20px`,
}}
transition={{ duration: 0.2 }}
className={`${styles.pokemon_list_element} ${getHighlightClass()} ${
className || ''
}`}
onClick={onClick}
>
<div className={styles.pokemon_number}>
<span>{`${number()}`}</span>
</div>
{children}
</motion.li>
</ul>
<motion.li
whileHover={{
scale: 1.02,
boxShadow: `rgba(0, 0, 0, 0.10) 0px 3px 20px`,
}}
transition={{ duration: 0.2 }}
className={`${styles.pokemon_list_element} ${getHighlightClass()} ${
className || ''
}`}
onClick={onClick}
>
<div className={styles.pokemon_number}>
<span>{`${number()}`}</span>
</div>
{children}
</motion.li>
);
};

Expand Down

0 comments on commit abd5f7d

Please sign in to comment.