Skip to content

Commit

Permalink
Merge pull request #101 from iOdiO89/100-새로운-직원-추가시-dropdown-컴포넌트-사용이…
Browse files Browse the repository at this point in the history
…-안되는-문제를-해결한다

100 새로운 직원 추가시 dropdown 컴포넌트 사용이 안되는 문제를 해결한다
  • Loading branch information
iOdiO89 authored Jul 15, 2024
2 parents 7507fcb + e9f8fa5 commit 03bf2e6
Showing 1 changed file with 5 additions and 1 deletion.
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

0 comments on commit 03bf2e6

Please sign in to comment.