Page rename
This commit is contained in:
parent
736028d51f
commit
1d1c12c570
@ -45,7 +45,7 @@ export const ContactsView: React.FC<ContactsViewProps> = ({
|
|||||||
<div className="flex items-center justify-between mb-4">
|
<div className="flex items-center justify-between mb-4">
|
||||||
<div className="flex items-center space-x-2">
|
<div className="flex items-center space-x-2">
|
||||||
<Users className="h-5 w-5 text-carnet-text-primary" />
|
<Users className="h-5 w-5 text-carnet-text-primary" />
|
||||||
<h2 className="text-lg font-semibold text-carnet-text-primary">Contacts</h2>
|
<h2 className="text-lg font-semibold text-carnet-text-primary">Carnet d'adresses</h2>
|
||||||
</div>
|
</div>
|
||||||
<button
|
<button
|
||||||
onClick={() => onContactSelect({
|
onClick={() => onContactSelect({
|
||||||
|
|||||||
@ -20,7 +20,7 @@ interface FolderConfig {
|
|||||||
const FOLDER_CONFIG: Record<FolderType, FolderConfig> = {
|
const FOLDER_CONFIG: Record<FolderType, FolderConfig> = {
|
||||||
'Notes': { icon: FileText, order: 1, displayName: 'Bloc-notes' },
|
'Notes': { icon: FileText, order: 1, displayName: 'Bloc-notes' },
|
||||||
'Diary': { icon: Calendar, order: 2, displayName: 'Journal' },
|
'Diary': { icon: Calendar, order: 2, displayName: 'Journal' },
|
||||||
'Health': { icon: Heart, order: 3, displayName: 'Carnet Santé' },
|
'Health': { icon: Heart, order: 3, displayName: 'Carnet de Santé' },
|
||||||
'Contacts': { icon: Users, order: 4, displayName: 'Carnet d\'adresses' }
|
'Contacts': { icon: Users, order: 4, displayName: 'Carnet d\'adresses' }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -5,6 +5,13 @@ import { Search, Plus, X, FileText, Calendar, Heart, Users } from 'lucide-react'
|
|||||||
import { format, parse } from 'date-fns';
|
import { format, parse } from 'date-fns';
|
||||||
import { fr } from 'date-fns/locale';
|
import { fr } from 'date-fns/locale';
|
||||||
|
|
||||||
|
const FOLDER_DISPLAY_NAMES: Record<string, string> = {
|
||||||
|
'Notes': 'Bloc-notes',
|
||||||
|
'Diary': 'Journal',
|
||||||
|
'Health': 'Carnet de Santé',
|
||||||
|
'Contacts': 'Carnet d\'adresses'
|
||||||
|
};
|
||||||
|
|
||||||
interface Note {
|
interface Note {
|
||||||
id: string;
|
id: string;
|
||||||
title: string;
|
title: string;
|
||||||
@ -123,7 +130,9 @@ export const NotesView: React.FC<NotesViewProps> = ({
|
|||||||
<div className="flex items-center justify-between mb-4">
|
<div className="flex items-center justify-between mb-4">
|
||||||
<div className="flex items-center space-x-2">
|
<div className="flex items-center space-x-2">
|
||||||
<Icon className="h-5 w-5 text-carnet-text-primary" />
|
<Icon className="h-5 w-5 text-carnet-text-primary" />
|
||||||
<h2 className="text-lg font-semibold text-carnet-text-primary">{currentFolder}</h2>
|
<h2 className="text-lg font-semibold text-carnet-text-primary">
|
||||||
|
{FOLDER_DISPLAY_NAMES[currentFolder] || currentFolder}
|
||||||
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
<button
|
<button
|
||||||
onClick={onNewNote}
|
onClick={onNewNote}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user