Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/app/desktop/(nav-bar)/rental-history/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,9 @@ export default function RentalHistoryPage() {
}, [page]);

const handlePageChange = async (pageChangeAction: PageChangeAction) => {
console.log('PageChange:', pageChangeAction);
setPage((current) =>
pageChangeAction === 'NEXT' ? current + 1 : current - 1,
);
console.log(`page: ${page}`);
};

return (
Expand Down
5 changes: 4 additions & 1 deletion src/app/mobile/admin/dashboard/_components/DashboardItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export default function DashboardItem({
studentId,
status,
applicatedAt,
rentedCount,
handleApproveBtnClick,
handleCancelBtnClick,
}: DashboardProps) {
Expand Down Expand Up @@ -45,7 +46,9 @@ export default function DashboardItem({
</section>

<section className="flex flex-col gap-2">
<div className="text-sm font-semibold">{itemName}</div>
<div className="text-sm font-semibold">
{itemName} ({rentedCount}개)
</div>

<section className="flex flex-col text-[10px] font-normal">
<section className="flex gap-1">
Expand Down
1 change: 1 addition & 0 deletions src/app/mobile/admin/dashboard/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ export default function Dashboard() {
studentId={item.studentId}
status={item.status}
applicatedAt={item.applicatedAt}
rentedCount={item.rentedCount}
handleApproveBtnClick={() => {
if (item.rentalHistoryId !== undefined) {
handleApproveBtnClick({
Expand Down
2 changes: 1 addition & 1 deletion src/app/mobile/admin/notification/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default function Notification() {
현재 알림이 없습니다.
</div>
) : (
notificationDetail.map((item) => (
notificationDetail?.map((item) => (
<NotificationItem
key={item.notificationId}
message={item.message}
Expand Down
1 change: 0 additions & 1 deletion src/components/desktop/NavBar/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ export default function NavBar() {
toast.success('로그아웃에 성공했습니다!');
}

console.log('index:', index);
setCurrentIndex(index);
};

Expand Down
1 change: 0 additions & 1 deletion src/components/mobile/BottomSheet/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ export default function BottomSheet({
ignoreDuplicate,
});

console.log(`${item.itemName} 대여가 완료되었습니다!`);
onCloseAction();
} catch (error) {
console.error('대여 신청 실패(중복대여 시도 시 409 에러 발생):', error);
Expand Down
1 change: 0 additions & 1 deletion src/lib/firebase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ export const handleFCMToken = async () => {
if (!currentToken) {
alert('알림을 허용해 주세요.');
} else {
console.log('currentToken', currentToken);
localStorage.setItem('fcmToken', currentToken);
await postFCMToken(currentToken);
}
Expand Down
1 change: 1 addition & 0 deletions src/types/dashboardType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export interface DashboardProps {
studentId: string;
status: string;
applicatedAt: string;
rentedCount: number;
handleApproveBtnClick: () => void;
handleCancelBtnClick: () => void;
}