Added the created_at and updated_at folder attributes in the interface
This commit is contained in:
parent
c751809411
commit
464f38b062
@ -235,7 +235,7 @@ export default function DashboardPage() {
|
||||
<Folder className="h-5 w-5 text-blue-500 flex-shrink-0" />
|
||||
<div className="min-w-0">
|
||||
<h3 className="font-medium text-gray-100 truncate">{folder.name}</h3>
|
||||
{/* ID du dossier supprimé */}
|
||||
{/* Texte sous le nom du dossier */}
|
||||
</div>
|
||||
</div>
|
||||
</CardContent>
|
||||
@ -258,7 +258,24 @@ export default function DashboardPage() {
|
||||
<div className="flex-shrink-0">
|
||||
<h1 className="text-2xl font-semibold">{selectedFolder.name}</h1>
|
||||
<p className="text-gray-400 mt-2">{selectedFolder.description}</p>
|
||||
{/* Badge ID supprimé */}
|
||||
<div className="flex items-center space-x-4 mt-3 text-xs text-gray-500 dark:text-gray-400">
|
||||
<div className="flex items-center space-x-1" title={selectedFolder.created_at}>
|
||||
<Clock className="h-3 w-3" />
|
||||
<span>
|
||||
Créé le: {new Date(selectedFolder.created_at).toLocaleString('fr-FR', {
|
||||
day: '2-digit', month: '2-digit', year: 'numeric', hour: '2-digit', minute: '2-digit'
|
||||
})}
|
||||
</span>
|
||||
</div>
|
||||
<div className="flex items-center space-x-1" title={selectedFolder.updated_at}>
|
||||
<Clock className="h-3 w-3" />
|
||||
<span>
|
||||
Modifié le: {new Date(selectedFolder.updated_at).toLocaleString('fr-FR', {
|
||||
day: '2-digit', month: '2-digit', year: 'numeric', hour: '2-digit', minute: '2-digit'
|
||||
})}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Contenu Colonne 2 */}
|
||||
@ -292,7 +309,7 @@ export default function DashboardPage() {
|
||||
Fichiers
|
||||
</CardTitle>
|
||||
</CardHeader>
|
||||
<CardContent>
|
||||
{/* <CardContent>
|
||||
{selectedFolder.files && selectedFolder.files.length > 0 ? (
|
||||
<div className="space-y-3">
|
||||
{selectedFolder.files.map((file, index) => (
|
||||
@ -310,7 +327,7 @@ export default function DashboardPage() {
|
||||
) : (
|
||||
<p className="text-gray-500">Aucun fichier dans ce dossier.</p>
|
||||
)}
|
||||
</CardContent>
|
||||
</CardContent> */}
|
||||
</Card>
|
||||
</div>
|
||||
</>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user