Fix linting
This commit is contained in:
parent
8ea7d7ad85
commit
0f392dfa78
3 changed files with 11 additions and 11 deletions
|
|
@ -104,10 +104,10 @@ export default function DeleteDocumentsDialog({ selectedDocIds, totalCompletedCo
|
|||
return (
|
||||
<Dialog open={open} onOpenChange={setOpen}>
|
||||
<DialogTrigger asChild>
|
||||
<Button
|
||||
variant="destructive"
|
||||
side="bottom"
|
||||
tooltip={t('documentPanel.deleteDocuments.tooltip', { count: selectedDocIds.length })}
|
||||
<Button
|
||||
variant="destructive"
|
||||
side="bottom"
|
||||
tooltip={t('documentPanel.deleteDocuments.tooltip', { count: selectedDocIds.length })}
|
||||
size="sm"
|
||||
>
|
||||
<TrashIcon/> {t('documentPanel.deleteDocuments.button')}
|
||||
|
|
@ -127,7 +127,7 @@ export default function DeleteDocumentsDialog({ selectedDocIds, totalCompletedCo
|
|||
<div className="text-red-500 dark:text-red-400 font-semibold mb-4">
|
||||
{t('documentPanel.deleteDocuments.warning')}
|
||||
</div>
|
||||
|
||||
|
||||
<div className="mb-4">
|
||||
{t('documentPanel.deleteDocuments.confirm', { count: selectedDocIds.length })}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -37,10 +37,10 @@ export default function DeselectDocumentsDialog({ selectedCount, onDeselect }: D
|
|||
return (
|
||||
<Dialog open={open} onOpenChange={setOpen}>
|
||||
<DialogTrigger asChild>
|
||||
<Button
|
||||
variant="outline"
|
||||
side="bottom"
|
||||
tooltip={t('documentPanel.deselectDocuments.tooltip')}
|
||||
<Button
|
||||
variant="outline"
|
||||
side="bottom"
|
||||
tooltip={t('documentPanel.deselectDocuments.tooltip')}
|
||||
size="sm"
|
||||
>
|
||||
<XIcon/> {t('documentPanel.deselectDocuments.button')}
|
||||
|
|
|
|||
|
|
@ -528,14 +528,14 @@ export default function DocumentManager() {
|
|||
</div>
|
||||
<div className="flex-1" />
|
||||
{isSelectionMode && (
|
||||
<DeleteDocumentsDialog
|
||||
<DeleteDocumentsDialog
|
||||
selectedDocIds={selectedDocIds}
|
||||
totalCompletedCount={documentCounts.processed || 0}
|
||||
onDocumentsDeleted={handleDocumentsDeleted}
|
||||
/>
|
||||
)}
|
||||
{isSelectionMode ? (
|
||||
<DeselectDocumentsDialog
|
||||
<DeselectDocumentsDialog
|
||||
selectedCount={selectedDocIds.length}
|
||||
onDeselect={handleDeselectAll}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue