Skip to content

Commit d74f653

Browse files
committed
Chore: 너비와 높이 조저
1 parent b1662d9 commit d74f653

1 file changed

Lines changed: 3 additions & 17 deletions

File tree

src/components/Icons/Message.tsx

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,11 @@
11
import React from 'react';
22
import type { IconsProps } from './dto';
33

4-
// desktopNavBar의 아이콘 크기는 14, 12 / default의 아이콘 크기는 14, 14
5-
6-
const Message: React.FC<IconsProps> = ({ width = '14', height = '14', color = '', isFilled = false }) => {
4+
const Message: React.FC<IconsProps> = ({ color = '', isFilled = false }) => {
75
return (
86
<>
97
{isFilled ? ( // isFilled가 true일 때 원하는 색 사용 (desktopNavBar의 message-fill는 color을 black으로, default는 color을 white로)
10-
<svg
11-
xmlns="http://www.w3.org/2000/svg"
12-
width={width}
13-
height={height}
14-
viewBox={`0 0 ${width} ${height}`}
15-
fill="none"
16-
>
8+
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="12" viewBox="0 0 14 12" fill="none">
179
<path
1810
d="M12.4 0.25H1.6C0.8575 0.25 0.25 0.8575 0.25 1.6V13.75L2.95 11.05H12.4C13.1425 11.05 13.75 10.4425 13.75 9.7V1.6C13.75 0.8575 13.1425 0.25 12.4 0.25Z"
1911
fill={color}
@@ -23,13 +15,7 @@ const Message: React.FC<IconsProps> = ({ width = '14', height = '14', color = ''
2315
</svg>
2416
) : (
2517
// isFilled가 false일 때 원하는 색 사용 (desktopNavBar의 message는 color을 black으로, default는 color을 #8E8E8E로, default의 message-white는 color을 white로)
26-
<svg
27-
xmlns="http://www.w3.org/2000/svg"
28-
width={width}
29-
height={height}
30-
viewBox={`0 0 ${width} ${height}`}
31-
fill="none"
32-
>
18+
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="12" viewBox="0 0 14 12" fill="none">
3319
<path
3420
d="M12.4 0.25H1.6C0.8575 0.25 0.25 0.8575 0.25 1.6V13.75L2.95 11.05H12.4C13.1425 11.05 13.75 10.4425 13.75 9.7V1.6C13.75 0.8575 13.1425 0.25 12.4 0.25ZM12.4 9.7H2.95L1.6 11.05V1.6H12.4V9.7Z"
3521
fill={color}

0 commit comments

Comments
 (0)