Skip to content

Commit

Permalink
refactor: room nav bar Button 컴포넌트로 교체
Browse files Browse the repository at this point in the history
  • Loading branch information
im-na0 committed Jun 13, 2024
1 parent a53c26b commit 1122232
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/assets/icons/ic_question-mark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 7 additions & 3 deletions src/pages/roomDetailPage/components/roomNavBar/RoomNavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,13 @@ const RoomNavBar = ({ room, roomId }: RoomNavBarProps) => {
variant="outline"
size="md"
width="full"
disabled={room.saleStatus}
disabled={!room.saleStatus}
onClick={buttonConfig.propose[userType].action}
rightAddon={room.isSeller || <IconInfoMark />}
rightAddon={
room.isSeller || (
<IconInfoMark fill={room.saleStatus ? "#FF7C17" : "#CDCDCD"} />
)
}
>
{buttonConfig.propose[userType].text}
</Button>
Expand All @@ -114,7 +118,7 @@ const RoomNavBar = ({ room, roomId }: RoomNavBarProps) => {
variant="solid"
size="md"
width="full"
disabled={room.saleStatus}
disabled={!room.saleStatus}
onClick={buttonConfig.purchase[userType].action}
>
{buttonConfig.purchase[userType].text}
Expand Down

0 comments on commit 1122232

Please sign in to comment.