Skip to content

Commit

Permalink
[fix] 빌드 에러 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
zestlee1106 committed Oct 1, 2023
1 parent 7a1dabf commit 82bc3b9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pages/room/addRoom/step2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ export default function Step2({ step1Data }: Step2Props) {
Total bedrooms
</Typography>
<Stepper2
register={register('bedRooms')}
disabled={['Studio', '1bed flat'].indexOf(typeButton) > -1}
initCount={typeButton === 'Studio' ? 0 : typeButton === 'Share house' ? 2 : 1}
disabledLeft={typeButton === 'Share house' && bedroomCount <= 2}
Expand All @@ -156,6 +157,7 @@ export default function Step2({ step1Data }: Step2Props) {
Total bathrooms
</Typography>
<Stepper2
register={register('bathrooms')}
initCount={1}
disabledLeft={bathroomCount <= 1}
disabledRight={bathroomCount >= 20}
Expand All @@ -167,6 +169,7 @@ export default function Step2({ step1Data }: Step2Props) {
Total roommates
</Typography>
<Stepper2
register={register('roommates')}
initCount={1}
disabledLeft={roommatesCount <= 0}
disabledRight={roommatesCount >= 20}
Expand Down

0 comments on commit 82bc3b9

Please sign in to comment.