Skip to content

Commit

Permalink
[PDW-54] fix: Link 삭제 후 window.location.href로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
chayoosang committed Oct 11, 2023
1 parent 2e0328f commit 3845046
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 55 deletions.
26 changes: 8 additions & 18 deletions src/pages/manager/officeBookingManage/OfficeBookingManageCell.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,31 +49,21 @@ function OfficeBookingManageCell(props) {
}
};

const moveToDetail = () => {
window.location.href = `/manage/officeBooking/${props.id}`
};





var status = findStatus(props.status)
var cancelButton = (
<SettingButtonContainer>
<SettingButton><Link style={{
color: "#8741CB",
fontSize: "20px",
fontStyle: "normal",
fontWeight: "400",
lineHeight: "22px",
}}
to={`/manage/officeBooking/${props.id}`}>상세보기</Link></SettingButton>
</SettingButtonContainer>)
<SettingButtonContainer><SettingButton onClick={moveToDetail}>상세보기</SettingButton></SettingButtonContainer>)

var usingButton = (
<SettingButtonContainer>
<SettingButton onClick={rejectResource}>반려</SettingButton> | <SettingButton><Link to={`/manage/officeBooking/${props.id}`}
style={{
color: "#8741CB",
fontSize: "20px",
fontStyle: "normal",
fontWeight: "400",
lineHeight: "22px",
}}>상세보기</Link></SettingButton>
<SettingButton onClick={rejectResource}>반려</SettingButton> |<SettingButton onClick={moveToDetail}>상세보기</SettingButton>
</SettingButtonContainer>)

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,53 +96,24 @@ function ResourceBookingManageCell(props) {
}
};

const moveToDetail = () => {
window.location.href = `/manage/resourceBooking/${props.id}`
};



var status = findStatus(props.status)
var watingButton = (
<SettingButtonContainer>
<SettingButton onClick={allowResource}>허가</SettingButton> | <SettingButton onClick={rejectResource}>반려</SettingButton> |
<SettingButton>
<Link style={{
color: "#8741CB",
fontSize: "20px",
fontStyle: "normal",
fontWeight: "400",
lineHeight: "22px", }}
to={`/manage/resourceBooking/${props.id}`}>
상세보기
</Link>
</SettingButton>
<SettingButton onClick={allowResource}>허가</SettingButton> | <SettingButton onClick={rejectResource}>반려</SettingButton> | <SettingButton onClick={moveToDetail}>상세보기</SettingButton>
</SettingButtonContainer>)

var cancelButton = (
<SettingButtonContainer>
<SettingButton>
<Link style={{
color: "#8741CB",
fontSize: "20px",
fontStyle: "normal",
fontWeight: "400",
lineHeight: "22px", }}
to={`/manage/resourceBooking/${props.id}`}>
상세보기
</Link>
</SettingButton>
</SettingButtonContainer>)
<SettingButtonContainer><SettingButton onClick={moveToDetail}>상세보기</SettingButton></SettingButtonContainer>)

var usingButton = (
<SettingButtonContainer>
<SettingButton onClick={returnResource}>반납</SettingButton> |
<SettingButton>
<Link style={{
color: "#8741CB",
fontSize: "20px",
fontStyle: "normal",
fontWeight: "400",
lineHeight: "22px", }}
to={`/manage/resourceBooking/${props.id}`}>
상세보기
</Link>
</SettingButton>
<SettingButton onClick={returnResource}>반납</SettingButton> | <SettingButton onClick={moveToDetail}>상세보기</SettingButton>
</SettingButtonContainer>)

return (
Expand Down

0 comments on commit 3845046

Please sign in to comment.