fix: export btn overlap issue (#6149)
This commit is contained in:
parent
b6ab853c57
commit
f02a2b04a5
2 changed files with 12 additions and 0 deletions
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">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue