feat: add a row for no document state

This commit is contained in:
Anas Khafaga
2024-10-01 15:29:58 +03:00
parent 40907a2584
commit b5dc7281f9
5 changed files with 15 additions and 4 deletions

View File

@@ -74,6 +74,13 @@ const Documents: React.FC<DocumentsProps> = ({
</tr>
</thead>
<tbody>
{!documents?.length && (
<tr>
<td colSpan={5} className="border-r border-t p-4">
{t('settings.documents.noData')}
</td>
</tr>
)}
{documents &&
documents.map((document, index) => (
<tr key={index}>