From d763c286c13e3c69d9aa30bd81c767611be40bd1 Mon Sep 17 00:00:00 2001 From: n4ze3m Date: Sat, 17 Feb 2024 00:01:07 +0530 Subject: [PATCH] Remove unused dependencies and update routing --- package.json | 3 +- src/components/Common/Markdown.tsx | 4 +- src/components/Option/Layout.tsx | 90 ++++++++----------- .../Option/Playground/PlaygroundNewChat.tsx | 1 - src/hooks/useMessageOption.tsx | 4 + src/routes/index.tsx | 2 + src/routes/option-index.tsx | 2 - src/routes/option-model.tsx | 9 ++ yarn.lock | 25 ------ 9 files changed, 57 insertions(+), 83 deletions(-) create mode 100644 src/routes/option-model.tsx diff --git a/package.json b/package.json index 0985d1f..c29ecab 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,6 @@ }, "dependencies": { "@ant-design/cssinjs": "^1.18.4", - "@headlessui/react": "^1.7.18", "@heroicons/react": "^2.1.1", "@langchain/community": "^0.0.21", "@langchain/core": "^0.1.22", @@ -81,4 +80,4 @@ "contextMenus" ] } -} \ No newline at end of file +} diff --git a/src/components/Common/Markdown.tsx b/src/components/Common/Markdown.tsx index 688c6f2..c691ffb 100644 --- a/src/components/Common/Markdown.tsx +++ b/src/components/Common/Markdown.tsx @@ -24,8 +24,8 @@ export default function Markdown({ message }: { message: string }) {
+ {pathname !== "/" && ( +
+ + + +
+ )}
-
- - - +
+ + + + + + + + + +