feat: add withdraw request functionality and UI components

This commit is contained in:
2026-08-27 02:39:57 +03:30
parent aeef95339d
commit 4ce663c669
115 changed files with 4064 additions and 315 deletions
@@ -35,6 +35,20 @@ export function buildShiftEvent(shift, overrides = {}) {
}
}
const WEEKDAY_NAMES = {
6: 'شنبه',
0: 'یکشنبه',
1: 'دوشنبه',
2: 'سه‌شنبه',
3: 'چهارشنبه',
4: 'پنج‌شنبه',
5: 'جمعه',
}
export function weekdayName(dayIndex) {
return WEEKDAY_NAMES[dayIndex] ?? null
}
export function formatJalaliDay(date) {
return new Intl.DateTimeFormat('fa-IR', { day: 'numeric', month: 'short' }).format(date)
}