diff --git a/Project/frontend/src/pages/MonthlyWork.tsx b/Project/frontend/src/pages/MonthlyWork.tsx index b480ef2..77339f1 100644 --- a/Project/frontend/src/pages/MonthlyWork.tsx +++ b/Project/frontend/src/pages/MonthlyWork.tsx @@ -1,14 +1,20 @@ import { useState, useEffect, useCallback } from 'react'; import { - Calendar, + CalendarDays, Save, RefreshCw, ChevronLeft, ChevronRight, Loader2, + Calendar, + CheckCircle2, + XCircle, + FileText, + Clock } from 'lucide-react'; import { comms } from '@/communication'; import { HolidayItem } from '@/types'; +import { clsx } from 'clsx'; interface DayInfo extends HolidayItem { dayOfWeek: number; @@ -104,144 +110,200 @@ export function MonthlyWorkPage() { const freeDays = holidays.filter(h => h.free).length; return ( -
휴일 및 근무일 관리
++ Monthly Company Schedule +
| 날짜 | -요일 | -휴일 | -메모 | -
|---|---|---|---|
|
+
+ {loading ? (
+
+
+ ) : holidays.length === 0 ? (
+ 근무표 데이터를 불러오는 중... +
+
+ ) : (
+ holidays.map((day) => (
+ 근무표가 생성되지 않았습니다 +No schedule data found +
+ {/* 날짜 */}
+
+
+ |
- - {day.dayName} - | -- - | -- handleMemoChange(day.idx, e.target.value)} - placeholder="메모 입력..." - className="w-full bg-white/5 border border-white/10 rounded-lg px-3 py-1.5 text-white text-sm focus:outline-none focus:border-primary-500" - /> - | -