From 815e145f0271074c1115d4f42b0a455cc9032ad2 Mon Sep 17 00:00:00 2001 From: ybchar Date: Sun, 21 Apr 2024 13:31:01 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EB=AC=B8=EC=9D=98=20=EC=B1=84=EB=84=90?= =?UTF-8?q?=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Icon/InquiredChannelIcon.tsx | 26 +++++++++++++++++++ src/components/Icon/index.tsx | 2 ++ .../mypage/setting_and_private/MenuList.tsx | 6 ++++- 3 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 src/components/Icon/InquiredChannelIcon.tsx diff --git a/src/components/Icon/InquiredChannelIcon.tsx b/src/components/Icon/InquiredChannelIcon.tsx new file mode 100644 index 00000000..ec61be9f --- /dev/null +++ b/src/components/Icon/InquiredChannelIcon.tsx @@ -0,0 +1,26 @@ +import { DEFAULT_ICON_COLOR, type IconComponentProps } from '@/components/Icon'; +import { token } from '@/styled-system/tokens'; + +function InquiredChannelIcon(props: IconComponentProps) { + const { color, size = 20, ...restProps } = props; + const iconColor = color ? token.var(`colors.${color}`) : DEFAULT_ICON_COLOR; + + return ( + + + + ); +} + +export default InquiredChannelIcon; diff --git a/src/components/Icon/index.tsx b/src/components/Icon/index.tsx index 364e0a58..ac2dba3b 100644 --- a/src/components/Icon/index.tsx +++ b/src/components/Icon/index.tsx @@ -37,6 +37,7 @@ import AppleLoginIcon from './AppleLoginIcon'; import EllipseCameraIcon from './EllipseCameraIcon'; import InputArrowDownIcon from './InputArrowDownIcon'; import InputCloseCircleIcon from './InputCloseCircleIcon'; +import InquiredChannelIcon from './InquiredChannelIcon'; import KakaoLoginIcon from './KakaoLoginIcon'; import NormalCalender from './NormalCalenderIcon'; import NormalClose from './NormalClose'; @@ -72,6 +73,7 @@ export const IconComponentMap = { 'normal-close': NormalClose, 'input-close-circle': InputCloseCircleIcon, 'input-arrow-down': InputArrowDownIcon, + 'inquired-channel': InquiredChannelIcon, refresh: RefreshIcon, 'plus-circle-large': PlusCircleLarge, '10mm-symbol': TENMMSymbolIcon, diff --git a/src/pages/mypage/setting_and_private/MenuList.tsx b/src/pages/mypage/setting_and_private/MenuList.tsx index 5ea929b4..3c6d491b 100644 --- a/src/pages/mypage/setting_and_private/MenuList.tsx +++ b/src/pages/mypage/setting_and_private/MenuList.tsx @@ -9,6 +9,8 @@ import { flex } from '@/styled-system/patterns'; function MenuList() { const { isOpen, openModal, closeModal } = useModal(); + const inquiredChannelUrl = 'https://forms.gle/pGRPA3NmUCHghbJM6'; + const onLogoutClick = () => { openModal(); }; @@ -16,6 +18,7 @@ function MenuList() { return (