feat: additional expenses

This commit is contained in:
2024-11-26 01:37:15 +04:00
parent e3146832a5
commit 564895c26f
18 changed files with 430 additions and 12 deletions

View File

@@ -5,11 +5,3 @@ export const getDefaultDates = (): [Date, Date] => {
return [dateFrom, dateTo];
};
export const dateToString = (date: Date | null) => {
if (date === null) return null;
const month = date.getMonth() + 1;
const day = date.getDate();
const monthStr = month < 10 ? `0${month}` : month;
const dayStr = day < 10 ? `0${day}` : day;
return `${date.getFullYear()}-${monthStr}-${dayStr}`;
};