Skip to content

Commit

Permalink
[feat] 삭제 이벤트 추가 및 삭제 버튼을 유저한테만 보이도록
Browse files Browse the repository at this point in the history
  • Loading branch information
zestlee1106 committed Oct 17, 2023
1 parent 59943bb commit 19cbcdd
Show file tree
Hide file tree
Showing 3 changed files with 238 additions and 180 deletions.
9 changes: 9 additions & 0 deletions api/room.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,12 @@ export const getRoom = async (id: string) => {
},
});
};

export const deleteRoom = async (id: string) => {
return fetchData<RoomSearch>(`/api/v1/rooms/${id}?id=${id}`, {
method: 'DELETE',
headers: {
'Content-Type': 'application/json',
},
});
};
2 changes: 1 addition & 1 deletion components/Modal/Modal.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
}

.overlay {
@apply bg-[rgba(0,0,0,0.2)] w-full h-full fixed top-0 z-[1000];
@apply bg-[rgba(0,0,0,0.2)] w-full h-full fixed top-0 z-[1000] max-w-[440px] min-w-[320px];
}

.full {
Expand Down
Loading

0 comments on commit 19cbcdd

Please sign in to comment.