From 745d64595230030efe7d8d184052e8b6b369a1ed Mon Sep 17 00:00:00 2001 From: ddiu8081 Date: Fri, 26 May 2023 23:43:42 +0800 Subject: [PATCH] feat(ui): use Button in send bar --- src/components/Send.tsx | 48 ++++++++++++++--------- src/components/main/ConversationEmpty.tsx | 2 +- src/components/ui/Button.tsx | 44 ++++++++++++--------- src/locale/lang/en.ts | 1 + src/locale/lang/zh-cn.ts | 1 + 5 files changed, 57 insertions(+), 39 deletions(-) diff --git a/src/components/Send.tsx b/src/components/Send.tsx index 7474bf4b..6519e042 100644 --- a/src/components/Send.tsx +++ b/src/components/Send.tsx @@ -7,6 +7,7 @@ import { loadingStateMap, streamsMap } from '@/stores/streams' import { handlePrompt } from '@/logics/conversation' import { globalAbortController } from '@/stores/settings' import { useI18n, useMobileScreen } from '@/hooks' +import Button from './ui/Button' export default () => { const { t } = useI18n() @@ -58,28 +59,37 @@ export default () => { }} >
{t('send.placeholder')}
-
) const EditState = () => ( -
-