chore: While streaming does not allow to change tabs
This commit is contained in:
parent
0eeeb435f1
commit
bc0de95cd6
2 changed files with 10 additions and 2 deletions
Binary file not shown.
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue