From 13cdba952f3cccc42aa0e07ff481542b73a9718b Mon Sep 17 00:00:00 2001 From: Bill Shi Date: Fri, 2 Aug 2024 15:27:22 -0700 Subject: [PATCH] fix(ui): rm non-functional features and fix some language --- copilot-ui/src/components/Login.tsx | 16 ++++++++-------- copilot-ui/src/components/i18n.tsx | 2 +- copilot-ui/src/constants/index.tsx | 3 +-- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/copilot-ui/src/components/Login.tsx b/copilot-ui/src/components/Login.tsx index 51c3bdab..4f05bda9 100644 --- a/copilot-ui/src/components/Login.tsx +++ b/copilot-ui/src/components/Login.tsx @@ -23,7 +23,7 @@ import { LANGUAGES } from "../constants"; const formSchema = z.object({ email: z.string().min(2, { - message: "Email must be at least 2 characters.", + message: "Username must be at least 2 characters.", }), password: z.string().min(2, { message: "Password must be at least 2 characters.", @@ -95,7 +95,7 @@ export function Login() {

{t("welcome")}
- TigerGraph Bot + TigerGraph CoPilot

{t("login")} @@ -142,23 +142,23 @@ export function Login() { )} /> - + {/* {t("forgotPassword")} - + */} -
+ {/*

{t("noAccount")} -
+
*/} - + {/* {t("signUp")} - + */} diff --git a/copilot-ui/src/components/i18n.tsx b/copilot-ui/src/components/i18n.tsx index a0ebb51c..c0b38155 100644 --- a/copilot-ui/src/components/i18n.tsx +++ b/copilot-ui/src/components/i18n.tsx @@ -14,7 +14,7 @@ i18n en: { translation: { welcome: "Welcome to", - login: "Please log in to your TigerGraph account to continue.", + login: "Please log in with your TigerGraph database account", username: "Username", password: "Password", forgotPassword: "Forgot Password", diff --git a/copilot-ui/src/constants/index.tsx b/copilot-ui/src/constants/index.tsx index 6b480246..bbab6121 100644 --- a/copilot-ui/src/constants/index.tsx +++ b/copilot-ui/src/constants/index.tsx @@ -1,5 +1,4 @@ export const LANGUAGES = [ { label: "Spanish", code: "es" }, - { label: "English", code: "en" }, - { label: "Italian", code: "it" }, + { label: "English", code: "en" } ];