Skip to content

Commit 5838516

Browse files
committed
feat: LinkCopyIcon 및 MoreInfo 컴포넌트에 width, height 속성 추가 및 viewBox 설정
- LinkCopyIcon 컴포넌트에 viewBox 속성을 추가하고, rect의 width를 48로 고정함 - MoreInfo 컴포넌트에 IconProps를 사용하여 width와 height를 props로 받아오도록 수정하고, viewBox 속성을 추가함
1 parent d71fc30 commit 5838516

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

apps/web/src/assets/icons/components/LinkCopyIcon.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ const LinkCopyIcon = ({ width = 48, height = 48 }: IconProps) => {
66
xmlns="http://www.w3.org/2000/svg"
77
width={width}
88
height={height}
9+
viewBox="0 0 48 48"
910
fill="none"
1011
>
11-
<rect width={width} height={height} fill="#E4E6EB" rx="24" />
12+
<rect width="48" height="48" fill="#E4E6EB" rx="24" />
1213
<path
1314
stroke="#121212"
1415
strokeLinecap="round"

apps/web/src/assets/icons/components/MoreInfo.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
1-
const MoreInfo = () => {
1+
import { IconProps } from '@/assets/icons/types';
2+
3+
const MoreInfo = ({ width = 48, height = 48 }: IconProps) => {
24
return (
3-
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none">
5+
<svg
6+
xmlns="http://www.w3.org/2000/svg"
7+
width={width}
8+
height={height}
9+
viewBox="0 0 48 48"
10+
fill="none"
11+
>
412
<rect width="46.5" height="46.5" x=".75" y=".75" fill="#fff" rx="23.25" />
513
<rect
614
width="46.5"

0 commit comments

Comments
 (0)