From 1823370567101187e981635529b437a9c2a4e5b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=96=91=EC=9D=80=EC=A7=80?= Date: Mon, 13 Oct 2025 16:14:01 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=90=9B=20Fix:=20prop-type=20=EC=A0=9C?= =?UTF-8?q?=EA=B1=B0=ED=95=98=EA=B3=A0=20jsdoc=20=EC=A0=81=EC=9A=A9?= =?UTF-8?q?=ED=95=98=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/profile-image/ProfileSelect.jsx | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/components/common/profile-image/ProfileSelect.jsx b/src/components/common/profile-image/ProfileSelect.jsx index 2f5c144a..0fc1d1d9 100644 --- a/src/components/common/profile-image/ProfileSelect.jsx +++ b/src/components/common/profile-image/ProfileSelect.jsx @@ -1,12 +1,23 @@ // ProfileSelect.jsx // 프로필 선택 컴포넌트 -import PropTypes from 'prop-types'; import { useState } from 'react'; import ProfileImage from './ProfileImage'; +/** + * 프로필 선택 컴포넌트 + * + * @param {Object} props - 컴포넌트 props + * @param {string[]} props.profiles - 프로필 이미지 URL 배열 + * @param {(url: string) => void} props.onSelect - 선택한 프로필 URL을 전달하는 콜백 함수 + * @returns {JSX.Element} + */ const ProfileSelect = ({ profiles, onSelect }) => { const [selectedUrl, setselectedUrl] = useState(null); + /** + * 프로필 선택 처리 + * @param {string} url - 선택된 프로필 이미지 URL + */ const handleSelect = (url) => { setselectedUrl(url); onSelect(url); @@ -32,9 +43,4 @@ const ProfileSelect = ({ profiles, onSelect }) => { ); }; -ProfileSelect.propTypes = { - profiles: PropTypes.arrayOf(PropTypes.string).isRequired, - onSelect: PropTypes.func.isRequired, -}; - export default ProfileSelect; From 376f71e536d418e8bf04e4c8b07eab991858abb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=96=91=EC=9D=80=EC=A7=80?= Date: Mon, 13 Oct 2025 16:17:53 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=90=9B=20Fix:=20prop-type=20=EC=A0=9C?= =?UTF-8?q?=EA=B1=B0=ED=95=98=EA=B3=A0=20jsdoc=20=EC=A0=81=EC=9A=A9?= =?UTF-8?q?=ED=95=98=EA=B8=B0=20-=20=EC=A0=9C=EB=AF=B8=EB=82=98=EC=9D=B4?= =?UTF-8?q?=20=EB=A6=AC=EB=B7=B0=20=EC=88=98=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/profile-image/ProfileSelect.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/common/profile-image/ProfileSelect.jsx b/src/components/common/profile-image/ProfileSelect.jsx index 0fc1d1d9..87a5116d 100644 --- a/src/components/common/profile-image/ProfileSelect.jsx +++ b/src/components/common/profile-image/ProfileSelect.jsx @@ -6,7 +6,7 @@ import ProfileImage from './ProfileImage'; /** * 프로필 선택 컴포넌트 * - * @param {Object} props - 컴포넌트 props + * @param {object} props - 컴포넌트 props * @param {string[]} props.profiles - 프로필 이미지 URL 배열 * @param {(url: string) => void} props.onSelect - 선택한 프로필 URL을 전달하는 콜백 함수 * @returns {JSX.Element}