From 70f44fcaca954cf9a1f6a1ae974ced96552e1c36 Mon Sep 17 00:00:00 2001 From: ManishMadan2882 Date: Mon, 11 Nov 2024 18:16:52 +0530 Subject: [PATCH] (fix:upload) UI enhance --- frontend/src/assets/file_upload.svg | 2 +- frontend/src/assets/website_collect.svg | 8 ++++---- frontend/src/locale/en.json | 4 ++-- frontend/src/locale/es.json | 2 +- frontend/src/locale/jp.json | 2 +- frontend/src/locale/zh.json | 2 +- frontend/src/upload/Upload.tsx | 12 ++++++------ 7 files changed, 16 insertions(+), 16 deletions(-) diff --git a/frontend/src/assets/file_upload.svg b/frontend/src/assets/file_upload.svg index f48d8d81f..159b580d1 100644 --- a/frontend/src/assets/file_upload.svg +++ b/frontend/src/assets/file_upload.svg @@ -1,3 +1,3 @@ - + \ No newline at end of file diff --git a/frontend/src/assets/website_collect.svg b/frontend/src/assets/website_collect.svg index b7aa60cfb..22d3e1de8 100644 --- a/frontend/src/assets/website_collect.svg +++ b/frontend/src/assets/website_collect.svg @@ -1,6 +1,6 @@ - - - - + + + + \ No newline at end of file diff --git a/frontend/src/locale/en.json b/frontend/src/locale/en.json index b1268df76..134604633 100644 --- a/frontend/src/locale/en.json +++ b/frontend/src/locale/en.json @@ -77,12 +77,12 @@ }, "modals": { "uploadDoc": { - "label": "Upload New Documentation", + "label": "Upload new document", "select": "Choose how to upload your document to DocsGPT", "file": "Upload from device", "back": "Back", "wait": "Please wait ...", - "remote": "Collect from a website", + "remote": "Collect from website", "start": "Start Chatting", "name": "Name", "choose": "Choose Files", diff --git a/frontend/src/locale/es.json b/frontend/src/locale/es.json index 296dbb16d..d29c3a7b7 100644 --- a/frontend/src/locale/es.json +++ b/frontend/src/locale/es.json @@ -77,7 +77,7 @@ }, "modals": { "uploadDoc": { - "label": "Subir Nueva Documentación", + "label": "Subir nuevo documento", "select": "Elija cómo cargar su documento en DocsGPT", "file": "Subir desde el dispositivo", "back": "Atrás", diff --git a/frontend/src/locale/jp.json b/frontend/src/locale/jp.json index a69ae31f3..08da4e0c3 100644 --- a/frontend/src/locale/jp.json +++ b/frontend/src/locale/jp.json @@ -77,7 +77,7 @@ }, "modals": { "uploadDoc": { - "label": "新規書類のアップロード", + "label": "新しい文書をアップロードする", "select": "ドキュメントを DocsGPT にアップロードする方法を選択します", "file": "デバイスからアップロード", "back": "戻る", diff --git a/frontend/src/locale/zh.json b/frontend/src/locale/zh.json index 51f8bfe90..5f8755e50 100644 --- a/frontend/src/locale/zh.json +++ b/frontend/src/locale/zh.json @@ -77,7 +77,7 @@ }, "modals": { "uploadDoc": { - "label": "上传新文档资料", + "label": "上传新文档", "select": "选择如何将文档上传到 DocsGPT", "file": "从设备上传", "back": "后退", diff --git a/frontend/src/upload/Upload.tsx b/frontend/src/upload/Upload.tsx index 81ce9f2b0..01ecc4800 100644 --- a/frontend/src/upload/Upload.tsx +++ b/frontend/src/upload/Upload.tsx @@ -351,32 +351,32 @@ function Upload({ } else { view = (
-

+

{t('modals.uploadDoc.label')}

{!activeTab && (
-

+

{t('modals.uploadDoc.select')}