From 84661cea362de82e2a41db12912ee186d4e1fcfd Mon Sep 17 00:00:00 2001 From: ManishMadan2882 Date: Fri, 21 Feb 2025 00:54:06 +0530 Subject: [PATCH] lint --- frontend/src/modals/ConfirmationModal.tsx | 6 +-- frontend/src/settings/APIKeys.tsx | 61 ++++++++++------------- frontend/src/settings/Documents.tsx | 6 ++- 3 files changed, 33 insertions(+), 40 deletions(-) diff --git a/frontend/src/modals/ConfirmationModal.tsx b/frontend/src/modals/ConfirmationModal.tsx index 14b91316..28b9c582 100644 --- a/frontend/src/modals/ConfirmationModal.tsx +++ b/frontend/src/modals/ConfirmationModal.tsx @@ -32,9 +32,9 @@ export default function ConfirmationModal({ >
-

- {message} -

+

+ {message} +

- {isCreateModalOpen && ( - setCreateModal(false)} - /> - )} - {isSaveKeyModalOpen && ( - setSaveKeyModal(false)} - /> - )} - {keyToDelete && ( - setKeyToDelete(null)} - submitLabel={t('modals.deleteConv.delete')} - handleSubmit={() => handleDeleteKey(keyToDelete.id)} - handleCancel={() => setKeyToDelete(null)} - /> - )} + {isCreateModalOpen && ( + setCreateModal(false)} + /> + )} + {isSaveKeyModalOpen && ( + setSaveKeyModal(false)} /> + )} + {keyToDelete && ( + setKeyToDelete(null)} + submitLabel={t('modals.deleteConv.delete')} + handleSubmit={() => handleDeleteKey(keyToDelete.id)} + handleCancel={() => setKeyToDelete(null)} + /> + )}
); } diff --git a/frontend/src/settings/Documents.tsx b/frontend/src/settings/Documents.tsx index a241489e..1203758d 100644 --- a/frontend/src/settings/Documents.tsx +++ b/frontend/src/settings/Documents.tsx @@ -285,9 +285,11 @@ export default function Documents({ {document.date ? formatDate(document.date) : ''} - {document.tokens ? formatTokens(+document.tokens) : ''} + {document.tokens + ? formatTokens(+document.tokens) + : ''} - e.stopPropagation()} // Stop event propagation for the entire actions cell >