diff --git a/.gitignore b/.gitignore index 693a705..b556bc3 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ count.txt .env .nitro .tanstack +pnpm-lock.yaml \ No newline at end of file diff --git a/src/components/interaction-panel/chat.tsx b/src/components/interaction-panel/chat.tsx index 9287106..2cdae07 100644 --- a/src/components/interaction-panel/chat.tsx +++ b/src/components/interaction-panel/chat.tsx @@ -5,14 +5,13 @@ import Paperclip from "@/icons/paperclip.svg?react"; import { cn } from "@/lib/utils"; import { useNavigate, useParams } from "@tanstack/react-router"; -import { observer } from "mobx-react-lite"; import { useAccountStore } from "@/contexts/AccountContext"; import { Button } from "../ui/button"; const Chat = observer(() => { const { id } = useParams({ from: "/interaction-panel/$id" }); return ( -
{id}
+
{id}
); }); @@ -40,13 +39,9 @@ const ChatInput = () => { setShowShadow(el.scrollTop + el.clientHeight < el.scrollHeight); }; -export const Chat = observer(() => { - const { isSandboxOpen, setIsSandboxOpen, isMainMenuOpen, setIsMainMenuOpen } = - useAccountStore(); - return (
{ ref={textareaRef} onInput={handleInput} onScroll={handleScroll} - className="text-[14px] placeholder:text-[#818181] focus:outline-none overflow-y-auto min-h-[40px] max-h-[150px] resize-none w-full pr-4" + className="max-h-[150px] min-h-[40px] w-full resize-none overflow-y-auto pr-4 text-[14px] placeholder:text-[#818181] focus:outline-none" placeholder="Ask whatever you want..." value={message} rows={1} @@ -64,7 +59,7 @@ export const Chat = observer(() => {
{ />
-
+
- + -

Add attachment

+

Add attachment

- - -
- +
+ + + -
-
- -
- - + + +
+
+ +
);