convert to TS component eventList + context
This commit is contained in:
@@ -51,7 +51,7 @@ export function formatDateLetter(d: string | Date | null | undefined): string {
|
||||
}
|
||||
|
||||
|
||||
export function formatDateLetterJS(d: string): string {
|
||||
/*export function formatDateLetterJS(d: string): string {
|
||||
const monthNames = [
|
||||
"Janvier", "Février", "Mars", "Avril", "Mai", "Juin",
|
||||
"Juillet", "Août", "Septembre", "Octobre", "Novembre", "Décembre"
|
||||
@@ -61,5 +61,5 @@ export function formatDateLetterJS(d: string): string {
|
||||
if (!year || !month || !day) return "Date invalide";
|
||||
|
||||
return `${day} ${monthNames[parseInt(month, 10) - 1]} ${year}`;
|
||||
}
|
||||
}*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user