mirror of
https://github.com/infinilabs/coco-app.git
synced 2025-12-16 11:37:47 +01:00
refactor: render footer content conditionally (#970)
This commit is contained in:
@@ -18,11 +18,7 @@ const WebFooter = () => {
|
||||
return (
|
||||
<div className="relative">
|
||||
<Popover>
|
||||
<PopoverButton
|
||||
onMouseDown={() => {
|
||||
console.log("WebFooter PopoverButton click");
|
||||
}}
|
||||
>
|
||||
<PopoverButton>
|
||||
{loginInfo ? (
|
||||
<WebUserAvatar />
|
||||
) : (
|
||||
|
||||
@@ -17,6 +17,7 @@ import { useExtensionsStore } from "@/stores/extensionsStore";
|
||||
import { parseSearchQuery, SearchQuery } from "@/utils";
|
||||
import InputUpload from "./InputUpload";
|
||||
import WebFooter from "../Common/UI/WebFooter";
|
||||
import Copyright from "../Common/Copyright";
|
||||
|
||||
interface InputControlsProps {
|
||||
isChatMode: boolean;
|
||||
@@ -237,7 +238,7 @@ const InputControls = ({
|
||||
(source?.type !== "deep_think" || !source?.config?.visible) &&
|
||||
!(source?.mcp_servers?.enabled && source?.mcp_servers?.visible) && (
|
||||
<div className="px-[9px]">
|
||||
<WebFooter />
|
||||
{isTauri ? <Copyright /> : <WebFooter />}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user