Page rename

This commit is contained in:
alma 2025-04-21 10:16:21 +02:00
parent 1a8c2bf741
commit 95241d0d19

View File

@ -8,7 +8,7 @@ interface NavigationProps {
onFolderSelect: (folder: string) => void; onFolderSelect: (folder: string) => void;
} }
type FolderType = 'Bloc-notes' | 'Journal' | 'Carnet Santé' | 'Carnet d\'adresses'; type FolderType = 'Notes' | 'Diary' | 'Health' | 'Contacts';
interface FolderConfig { interface FolderConfig {
icon: LucideIcon; icon: LucideIcon;
@ -17,10 +17,10 @@ interface FolderConfig {
// Define folder order and icons // Define folder order and icons
const FOLDER_CONFIG: Record<FolderType, FolderConfig> = { const FOLDER_CONFIG: Record<FolderType, FolderConfig> = {
'Bloc-notes': { icon: FileText, order: 1 }, 'Notes': { icon: FileText, order: 1 },
'Journal': { icon: Calendar, order: 2 }, 'Diary': { icon: Calendar, order: 2 },
'Carnet Santé': { icon: Heart, order: 3 }, 'Health': { icon: Heart, order: 3 },
'Carnet d\'adresses': { icon: Users, order: 4 } 'Contacts': { icon: Users, order: 4 }
}; };
interface ContactFile { interface ContactFile {
@ -38,13 +38,13 @@ export default function Navigation({ nextcloudFolders, onFolderSelect }: Navigat
const getFolderIcon = (folder: string) => { const getFolderIcon = (folder: string) => {
switch (folder) { switch (folder) {
case 'Bloc-notes': case 'Notes':
return FileText; return FileText;
case 'Journal': case 'Diary':
return Calendar; return Calendar;
case 'Carnet Santé': case 'Health':
return Heart; return Heart;
case 'Carnet d\'adresses': case 'Contacts':
return Users; return Users;
default: default:
return FileText; return FileText;