feat(i18n): enhance locale support for rebate settings and report exports
- Updated English, Nepali, and Chinese locale files to include new translations for the "apply rebate to payout" feature, enhancing clarity on its functionality. - Added new export options for previewing CSV and Excel files in reports, improving user experience with clearer export capabilities. - Enhanced internationalization support across multiple locales to ensure consistent messaging in the admin interface.
This commit is contained in:
@@ -47,9 +47,11 @@ export function DrawCreateDialog({
|
||||
const [saving, setSaving] = useState(false);
|
||||
|
||||
useEffect(() => {
|
||||
if (!open) {
|
||||
setForm(resetFormState());
|
||||
}
|
||||
queueMicrotask(() => {
|
||||
if (!open) {
|
||||
setForm(resetFormState());
|
||||
}
|
||||
});
|
||||
}, [open]);
|
||||
|
||||
async function submit(): Promise<void> {
|
||||
|
||||
@@ -51,13 +51,15 @@ export function DrawEditDialog({
|
||||
const [saving, setSaving] = useState(false);
|
||||
|
||||
useEffect(() => {
|
||||
if (!open || draw == null) {
|
||||
return;
|
||||
}
|
||||
setDrawTime(isoToScheduleValue(draw.draw_time));
|
||||
setCloseTime(isoToScheduleValue(draw.close_time));
|
||||
setStartTime(isoToScheduleValue(draw.start_time));
|
||||
setDrawNo(draw.draw_no);
|
||||
queueMicrotask(() => {
|
||||
if (!open || draw == null) {
|
||||
return;
|
||||
}
|
||||
setDrawTime(isoToScheduleValue(draw.draw_time));
|
||||
setCloseTime(isoToScheduleValue(draw.close_time));
|
||||
setStartTime(isoToScheduleValue(draw.start_time));
|
||||
setDrawNo(draw.draw_no);
|
||||
});
|
||||
}, [open, draw]);
|
||||
|
||||
async function submit(): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user