From 064aaefe3353e9dbf45b3fda074d4989e2b092b6 Mon Sep 17 00:00:00 2001 From: llddang Date: Sun, 12 Jan 2025 21:02:48 +0900 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20IconBox=20=EC=BB=B4=ED=8F=AC?= =?UTF-8?q?=EB=84=8C=ED=8A=B8=EC=97=90=20cursor=EB=9D=BC=EB=8A=94=20?= =?UTF-8?q?=EC=86=8D=EC=84=B1=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #370 --- src/components/IconBox/index.tsx | 4 ++-- src/components/IconBox/type.ts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/IconBox/index.tsx b/src/components/IconBox/index.tsx index 279f742c..922eaf97 100644 --- a/src/components/IconBox/index.tsx +++ b/src/components/IconBox/index.tsx @@ -2,11 +2,11 @@ import { Flex, IconButton, Text } from '@chakra-ui/react'; import { IconBoxProps } from './type'; -const IconBox = ({ leftIcon, content, rightIcon, handleClick }: IconBoxProps) => { +const IconBox = ({ leftIcon, content, rightIcon, handleClick, cursor = 'default' }: IconBoxProps) => { return ( - + {content} {rightIcon && ( diff --git a/src/components/IconBox/type.ts b/src/components/IconBox/type.ts index 56a0b9e0..df286a95 100644 --- a/src/components/IconBox/type.ts +++ b/src/components/IconBox/type.ts @@ -3,4 +3,5 @@ export interface IconBoxProps { content: string; rightIcon?: React.ReactElement; handleClick?: () => void; + cursor?: React.CSSProperties['cursor']; } From 657964bbabc58e11c67298fad0c458df8192d032 Mon Sep 17 00:00:00 2001 From: llddang Date: Sun, 12 Jan 2025 21:03:32 +0900 Subject: [PATCH 2/2] =?UTF-8?q?design:=20=ED=95=99=EC=8A=B5=EC=9E=90?= =?UTF-8?q?=EB=A3=8C=20=EB=AA=A8=EB=8B=AC=EC=97=90=EC=84=9C=20=ED=95=99?= =?UTF-8?q?=EC=8A=B5=EC=9E=90=EB=A3=8C=20=EB=8B=A4=EC=9A=B4=EB=A1=9C?= =?UTF-8?q?=EB=93=9C=20=EB=B2=84=ED=8A=BC=EC=9D=98=20=EB=82=B4=EC=99=B8?= =?UTF-8?q?=EB=B6=80=EC=97=90=20cursor=20=EB=8F=99=EC=9D=BC=ED=95=98?= =?UTF-8?q?=EA=B2=8C=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #370 --- src/containers/study/DocumentModal/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/containers/study/DocumentModal/index.tsx b/src/containers/study/DocumentModal/index.tsx index 5015b51c..94cd7d97 100644 --- a/src/containers/study/DocumentModal/index.tsx +++ b/src/containers/study/DocumentModal/index.tsx @@ -89,13 +89,14 @@ const DocumentModal = ({ id, isOpen, setIsDocsModalOpen, setReload }: DocumentMo // leftIcon={data.type === 'pdf' ? : } leftIcon={} content={data.url.toString()} + cursor="pointer" /> ))} {document?.type === 'URL' && document.files.map((data) => ( - } content={data.url} /> + } content={data.url} cursor="pointer" /> ))}