Skip to content

Commit 884af66

Browse files
committed
fix: 중복 아이콘 제거 및 아이콘 컴포넌트 스타일 수정
1 parent 348233a commit 884af66

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
"lint": "eslint",
1010
"icons:clean": "svgo -r -f src/shared/icons/source --config=./svgo.config.mjs --multipass",
1111
"icons:gen": "pnpm dlx tsx src/shared/icons/scripts/generate-icon-list.ts ",
12-
"icons": "pnpm icons:clean && pnpm icons:gen",
13-
"icons:watch": "chokidar \"src/shared/icons/source/**/*.svg\" -c \"pnpm icons\""
12+
"icons": "pnpm icons:clean && pnpm icons:gen"
1413
},
1514
"dependencies": {
1615
"axios": "^1.12.2",

src/pages/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default function Home() {
1212
<Icon name='CalendarBlank' size={200} color='gray-900' />
1313
<Icon name='User' size={200} color='blue-400' />
1414
<Icon name='User' size={200} color='red-300' />
15-
15+
<Icon name='User' size={200} color='red-300' />
1616
<p className='mt-3 text-lg sm:text-2xl text-gray-600'>
1717
Next.js(Page Router) + TS + Tailwind + Axios
1818
</p>

src/shared/icons/components/icon.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,9 @@ export const Icon = ({
7878

7979
const combined = clsx(
8080
'inline-block',
81+
'transform',
8182
rotateClass,
82-
hasRotateAnimation && 'transform transition-transform duration-200',
83+
hasRotateAnimation && 'transition-transform duration-200',
8384
className,
8485
);
8586

0 commit comments

Comments
 (0)