diff --git a/web/screens/Chat/index.tsx b/web/screens/Chat/index.tsx index 4b5dc3094b..b3d379b823 100644 --- a/web/screens/Chat/index.tsx +++ b/web/screens/Chat/index.tsx @@ -67,6 +67,7 @@ const ChatScreen = () => { setIsWaitingToSend(false) sendChatMessage() } + // eslint-disable-next-line react-hooks/exhaustive-deps }, [waitingToSendMessage, activeConversationId]) const handleKeyDown = async ( diff --git a/web/screens/Welcome/index.tsx b/web/screens/Welcome/index.tsx index 3a0a2a65c1..72030cb919 100644 --- a/web/screens/Welcome/index.tsx +++ b/web/screens/Welcome/index.tsx @@ -1,6 +1,21 @@ +import { Fragment } from 'react' + +import { Badge, Button } from '@janhq/uikit' + import LogoMark from '@/containers/Brand/Logo/Mark' +import { MainViewState } from '@/constants/screens' + +import { useActiveModel } from '@/hooks/useActiveModel' +import { useGetDownloadedModels } from '@/hooks/useGetDownloadedModels' + +import { useMainViewState } from '@/hooks/useMainViewState' + const WelcomeScreen = () => { + const { downloadedModels } = useGetDownloadedModels() + const { activeModel } = useActiveModel() + const { setMainViewState } = useMainViewState() + return (
{`let’s download your first model`}
+ + {downloadedModels.length === 0 && !activeModel && ( +{`let’s download your first model`}
+ +{`Please start a downloaded model in My Models page to use this feature.`}
+{`You are ready to start conversations.`}
+ +