feat: add withdraw request functionality and UI components
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user