From aad12aa22734808f8cb6e44ce74652c5de473d60 Mon Sep 17 00:00:00 2001 From: Anas Khafaga Date: Fri, 4 Oct 2024 23:07:17 +0300 Subject: [PATCH] fix: update tables styles --- frontend/src/settings/APIKeys.tsx | 26 ++++++++------------- frontend/src/settings/Documents.tsx | 36 ++++++++++------------------- 2 files changed, 22 insertions(+), 40 deletions(-) diff --git a/frontend/src/settings/APIKeys.tsx b/frontend/src/settings/APIKeys.tsx index e27f5696..4517e647 100644 --- a/frontend/src/settings/APIKeys.tsx +++ b/frontend/src/settings/APIKeys.tsx @@ -100,35 +100,29 @@ export default function APIKeys() { )}
- +
- - - - + + + + {!apiKeys?.length && ( - )} {apiKeys?.map((element, index) => ( - - - - + + +
- {t('settings.apiKeys.name')} - - {t('settings.apiKeys.sourceDoc')} - - {t('settings.apiKeys.key')} - {t('settings.apiKeys.name')}{t('settings.apiKeys.sourceDoc')}{t('settings.apiKeys.key')}
+ {t('settings.apiKeys.noData')}
{element.name}{element.source}{element.key} + {element.name}{element.source}{element.key} Delete = ({
- +
- - - - - + + + + + {!documents?.length && ( - @@ -84,19 +76,15 @@ const Documents: React.FC = ({ {documents && documents.map((document, index) => ( - - - + + - -
- {t('settings.documents.name')} - - {t('settings.documents.date')} - - {t('settings.documents.tokenUsage')} - - {t('settings.documents.type')} - {t('settings.documents.name')}{t('settings.documents.date')}{t('settings.documents.tokenUsage')}{t('settings.documents.type')}
+ {t('settings.documents.noData')}
- {document.name} - - {document.date} - + {document.name}{document.date} {document.tokens ? formatTokens(+document.tokens) : ''} + {document.type === 'remote' ? 'Pre-loaded' : 'Private'} +
{document.type !== 'remote' && (