refactor(FE): Remove unused imports and redundant code

This commit is contained in:
rstubryan
2026-02-20 14:17:26 +07:00
parent de0f9ae985
commit 1f2f3acebb
90 changed files with 222 additions and 474 deletions
@@ -46,15 +46,15 @@ export function DatePicker({
});
};
const formatDateInput = (dateStr: string) => {
if (!dateStr) return '';
const d = new Date(dateStr + 'T00:00:00');
return d.toLocaleDateString('en-GB', {
day: '2-digit',
month: '2-digit',
year: 'numeric',
});
};
// const formatDateInput = (dateStr: string) => {
// if (!dateStr) return '';
// const d = new Date(dateStr + 'T00:00:00');
// return d.toLocaleDateString('en-GB', {
// day: '2-digit',
// month: '2-digit',
// year: 'numeric',
// });
// };
const displayFormatter = formatDisplay || defaultFormatDisplay;