Update approval transaction

This commit is contained in:
wayanrivan
2025-04-11 14:22:20 +07:00
parent 9109b9d688
commit f959a477f1
7 changed files with 395 additions and 224 deletions

View File

@ -18,12 +18,10 @@ const ListToolbar = () => {
// useEffect to set the default date values
useEffect(() => {
const today = new Date();
const nextWeek = new Date(today);
nextWeek.setDate(today.getDate() + 7);
const firstDayOfMonth = new Date(today.getFullYear(), today.getMonth(), 1);
settrxDate({
from: formatDate(today), // Set 'from' to today
to: formatDate(nextWeek), // Set 'to' to 7 days later
from: formatDate(firstDayOfMonth),
to: formatDate(today),
});
}, []);