fix: export btn overlap issue (#6149)

This commit is contained in:
Akshita Goyal 2024-12-04 13:41:48 +05:30 committed by GitHub
parent b6ab853c57
commit f02a2b04a5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 0 deletions

View file

@ -0,0 +1,3 @@
export const hideFloatingBot = () => {};
export const showFloatingBot = () => {};

View file

@ -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">