Skip to content

Commit d0991bb

Browse files
committed
♻️ refactor: RelationshipSelect 컴포넌트로 이름 변경
1 parent de59425 commit d0991bb

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/components/Dropdown/Dropdown.jsx renamed to src/components/RelationshipSelect/RelationshipSelect.jsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
import { useState, useRef, useId } from 'react';
22
import useDetectClose from '../../hooks/useDetectClose';
3-
import styles from './Dropdown.module.scss';
3+
import styles from './RelationshipSelect.module.scss';
44

55
const OPTIONS = ['친구', '지인', '동료', '가족'];
66

7-
export default function Dropdown({ defaultValue = '지인', onChange }) {
7+
export default function RelationshipSelect({
8+
defaultValue = '지인',
9+
onChange,
10+
}) {
811
const dropdownRef = useRef(null);
912
const id = useId();
1013
const [selected, setSelected] = useState(defaultValue);

src/components/Dropdown/Dropdown.module.scss renamed to src/components/RelationshipSelect/RelationshipSelect.module.scss

File renamed without changes.

0 commit comments

Comments
 (0)