Add KeyIn pre/post cancel types and improve English translations
- Add PRE_CANCEL and POST_CANCEL transaction types to KeyIn payment - Update English translations for better readability (FAQ, Settlement Service) - Fix calendar month date parsing to handle format correctly 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -67,11 +67,15 @@ export const FilterCalendarMonth = ({
|
||||
|
||||
const setNewMonth = (month: string) => {
|
||||
console.log(month)
|
||||
if(calendarType === CalendarType.Start){
|
||||
setStartMonth(moment(month+'.01').format('YYYYMM'));
|
||||
}
|
||||
else if(calendarType === CalendarType.End){
|
||||
setEndMonth(moment(month+'.01').format('YYYYMM'));
|
||||
// month is already in 'YYYY.MM' format from NiceCalendarMonth
|
||||
const parsedMonth = moment(month, 'YYYY.MM', true);
|
||||
if (parsedMonth.isValid()) {
|
||||
if(calendarType === CalendarType.Start){
|
||||
setStartMonth(parsedMonth.format('YYYYMM'));
|
||||
}
|
||||
else if(calendarType === CalendarType.End){
|
||||
setEndMonth(parsedMonth.format('YYYYMM'));
|
||||
}
|
||||
}
|
||||
setCalendarOpen(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user