diff --git a/app/carnet/page.tsx b/app/carnet/page.tsx index aa0c8431..e337ae63 100644 --- a/app/carnet/page.tsx +++ b/app/carnet/page.tsx @@ -21,13 +21,16 @@ interface Note { id: string; title: string; content: string; - lastEdited: Date; + lastModified: string; + type: string; + mime: string; + etag: string; } export default function CarnetPage() { const { data: session, status } = useSession(); const [isLoading, setIsLoading] = useState(true); - const [layoutMode, setLayoutMode] = useState(PaneLayout.ItemSelection); + const [layoutMode, setLayoutMode] = useState("item-selection"); const [selectedNote, setSelectedNote] = useState(null); const [isMobile, setIsMobile] = useState(false); const [showNav, setShowNav] = useState(true); @@ -142,7 +145,7 @@ export default function CarnetPage() { const handleFolderSelect = (folder: string) => { console.log('Selected folder:', folder); setSelectedFolder(folder); - setLayoutMode(PaneLayout.ItemSelection); + setLayoutMode("item-selection"); }; if (isLoading) { diff --git a/components/carnet/navigation.tsx b/components/carnet/navigation.tsx index 4d90ed42..5c776f94 100644 --- a/components/carnet/navigation.tsx +++ b/components/carnet/navigation.tsx @@ -26,12 +26,7 @@ const FOLDER_CONFIG: Record = { 'Contacts': { icon: Users, order: 4 } }; -export const Navigation: React.FC = ({ - layout, - onLayoutChange, - nextcloudFolders, - onFolderSelect, -}) => { +export default function Navigation({ layout, onLayoutChange, nextcloudFolders, onFolderSelect }: NavigationProps) { const [searchQuery, setSearchQuery] = useState(''); const getFolderIcon = (folder: string) => { @@ -130,4 +125,4 @@ export const Navigation: React.FC = ({ ); -}; \ No newline at end of file +} \ No newline at end of file diff --git a/components/carnet/notes-view.tsx b/components/carnet/notes-view.tsx index 61abbc6a..27128de9 100644 --- a/components/carnet/notes-view.tsx +++ b/components/carnet/notes-view.tsx @@ -8,8 +8,8 @@ import { fr } from 'date-fns/locale'; interface Note { id: string; title: string; + content: string; lastModified: string; - size: number; type: string; mime: string; etag: string;