mirror of
https://github.com/makeplane/plane
synced 2025-08-07 19:59:33 +00:00
fix: export btn overlap issue (#6149)
This commit is contained in:
3
web/ce/helpers/pi-chat.helper.ts
Normal file
3
web/ce/helpers/pi-chat.helper.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export const hideFloatingBot = () => {};
|
||||
|
||||
export const showFloatingBot = () => {};
|
||||
@@ -1,3 +1,4 @@
|
||||
import { useEffect } from "react";
|
||||
import { observer } from "mobx-react";
|
||||
import { useParams } from "next/navigation";
|
||||
import { useForm } from "react-hook-form";
|
||||
@@ -11,6 +12,7 @@ import { CustomAnalyticsSelectBar, CustomAnalyticsMainContent, CustomAnalyticsSi
|
||||
import { ANALYTICS } from "@/constants/fetch-keys";
|
||||
import { cn } from "@/helpers/common.helper";
|
||||
import { useAppTheme } from "@/hooks/store";
|
||||
import { hideFloatingBot, showFloatingBot } from "@/plane-web/helpers/pi-chat.helper";
|
||||
import { AnalyticsService } from "@/services/analytics.service";
|
||||
|
||||
type Props = {
|
||||
@@ -51,6 +53,13 @@ export const CustomAnalytics: React.FC<Props> = observer((props) => {
|
||||
|
||||
const isProjectLevel = projectId ? true : false;
|
||||
|
||||
useEffect(() => {
|
||||
hideFloatingBot();
|
||||
return () => {
|
||||
showFloatingBot();
|
||||
};
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<div className={cn("relative flex h-full w-full overflow-hidden", isProjectLevel ? "flex-col-reverse" : "")}>
|
||||
<div className="flex h-full w-full flex-col overflow-hidden">
|
||||
|
||||
Reference in New Issue
Block a user