mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-06-09 15:07:51 +00:00
refactor(FE): Remove unused imports and redundant code
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user