Skip to content

Commit

Permalink
fix: 외출 상태 관련 UI 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Juone2 committed Aug 13, 2024
1 parent 778f0aa commit 793c586
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions services/admin/src/components/outings/OutingDisabledTime.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,10 @@ export default function OutingDisabledTime() {
if (selectedDay && selectedId !== null) {
updateOutingApplicationAction(selectedId.toString())
.then(() => {
localStorage.setItem('disabledtimeId', selectedId.toString());
toastDispatch({
actionType: 'APPEND_TOAST',
toastType: 'SUCCESS',
message: '외출 시간이 성공적으로 비활성화되었습니다.',
message: '외출 상태가 변경되었습니다.',
});
setTimeout(() => {
window.location.reload();
Expand Down Expand Up @@ -106,7 +105,7 @@ export default function OutingDisabledTime() {
return (
<>
<Modal
title="외출 비활성화"
title="외출 상태 관리"
inputList={[
<>
<_Container>
Expand All @@ -132,15 +131,15 @@ export default function OutingDisabledTime() {
</_TimeButton>
))
) : (
<_NoTimes>외출 비활성화를 할 시간이 없습니다.</_NoTimes>
<_NoTimes>외출 상태를 변경할 요일을 선택해 주세요.</_NoTimes>
)}
</_ButtonWrapper>
</div>
</>,
]}
buttonList={[
<Button kind="outline" color="gray" onClick={handleOutingDisable}>
외출 비활성화
외출 상태 변경
</Button>,
]}
close={closeModal}
Expand Down
2 changes: 1 addition & 1 deletion services/admin/src/pages/outing/OutingOptionsHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export function OutingOptionsHeader({
color="gray"
onClick={() => selectModal('OUTING_DISABLED_TIME')}
>
외출 비활성화
외출 상태 관리
</Button>
<Button
kind="outline"
Expand Down

0 comments on commit 793c586

Please sign in to comment.