mirror of
https://github.com/makeplane/plane.git
synced 2026-07-13 22:09:12 +02:00
[WEB-4601] fix: added observer to the ExtendedAppHeader (#3779)
* fix: added observer to the ExtendedAppHeader * fix: added observer to ExtendedAppHeader --------- Co-authored-by: sriramveeraghanta <veeraghanta.sriram@gmail.com>
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { ReactNode } from "react";
|
||||
import { observer } from "mobx-react";
|
||||
import { useParams, usePathname } from "next/navigation";
|
||||
import { E_FEATURE_FLAGS } from "@plane/constants";
|
||||
import { Tooltip, PiIcon } from "@plane/ui";
|
||||
@@ -10,7 +11,7 @@ import { useFlag } from "@/plane-web/hooks/store";
|
||||
import { usePiChat } from "@/plane-web/hooks/store/use-pi-chat";
|
||||
import { isSidebarToggleVisible } from "../desktop/helper";
|
||||
|
||||
export const ExtendedAppHeader = (props: { header: ReactNode }) => {
|
||||
export const ExtendedAppHeader = observer((props: { header: ReactNode }) => {
|
||||
const { header } = props;
|
||||
// router
|
||||
const pathname = usePathname();
|
||||
@@ -43,8 +44,8 @@ export const ExtendedAppHeader = (props: { header: ReactNode }) => {
|
||||
</button>
|
||||
</Tooltip>
|
||||
</div>
|
||||
)}{" "}
|
||||
)}
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user