Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

100 새로운 직원 추가시 dropdown 컴포넌트 사용이 안되는 문제를 해결한다 #101

Merged
6 changes: 5 additions & 1 deletion src/screen/manage/AddWorkModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,11 @@ export default function AddWorkModal() {
<Sheet.Content>
<div className="mb-6 text-Gray7 B1-medium">근무 추가</div>
<Dropdown
defaultValue="직원을 선택해주세요"
defaultValue={
memberNameList.length === 0
? "가게에 직원이 존재하지 않습니다"
: "직원을 선택해주세요"
}
options={memberNameList}
onChange={setSelectedMemberName}
/>
Expand Down
Loading