Doküman Widget içerisinde değişiklikler
This commit is contained in:
parent
7a0aa881d5
commit
ef4913ad31
1 changed files with 46 additions and 40 deletions
|
|
@ -24,7 +24,8 @@ const RecentDocuments: React.FC<{ documents: DocumentDto[] }> = ({ documents })
|
|||
</div>
|
||||
</div>
|
||||
<div className="divide-y divide-gray-200 dark:divide-gray-700">
|
||||
{documents.slice(0, 3).map((doc) => (
|
||||
{documents.length > 0 ? (
|
||||
documents.slice(0, 3).map((doc) => (
|
||||
<div
|
||||
key={doc.id}
|
||||
className="p-4 hover:bg-gray-50 dark:hover:bg-gray-700/50 transition-colors"
|
||||
|
|
@ -67,7 +68,12 @@ const RecentDocuments: React.FC<{ documents: DocumentDto[] }> = ({ documents })
|
|||
</button>
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
))
|
||||
) : (
|
||||
<div className="p-4 text-center text-sm text-gray-500 dark:text-gray-400">
|
||||
Gösterilecek doküman yok.
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue