chore: While streaming does not allow to change tabs

This commit is contained in:
shiva raj badu 2025-08-10 00:17:33 +05:45
parent 0eeeb435f1
commit bc0de95cd6
No known key found for this signature in database
2 changed files with 10 additions and 2 deletions

View file

@ -175,7 +175,11 @@ const SidePanel = ({
? "bg-[#5141e5] hover:bg-[#4638c7]"
: "bg-white hover:bg-white"
}`}
onClick={() => setActive("grid")}
onClick={() => {
if (!isStreaming) {
setActive("grid")
}
}}
>
<LayoutList
className={`${active === "grid" ? "text-white" : "text-black"
@ -190,7 +194,11 @@ const SidePanel = ({
? "bg-[#5141e5] hover:bg-[#4638c7]"
: "bg-white hover:bg-white"
}`}
onClick={() => setActive("list")}
onClick={() =>{
if(!isStreaming){
setActive("list")
}
}}
>
<ListTree
className={`${active === "list" ? "text-white" : "text-black"