diff --git a/frontend/src/lib/components/PageHeader.tsx b/frontend/src/lib/components/PageHeader.tsx index 9621e1f615e7a..5c8c9c58ff0c5 100644 --- a/frontend/src/lib/components/PageHeader.tsx +++ b/frontend/src/lib/components/PageHeader.tsx @@ -1,6 +1,6 @@ import clsx from 'clsx' import { useValues } from 'kea' -import { Within3000PageHeaderContext } from 'lib/lemon-ui/LemonButton/LemonButton' +import { WithinPageHeaderContext } from 'lib/lemon-ui/LemonButton/LemonButton' import { createPortal } from 'react-dom' import { DraggableToNotebookProps } from 'scenes/notebooks/AddToNotebook/DraggableToNotebook' @@ -23,7 +23,7 @@ export function PageHeader({ caption, buttons, tabbedPage }: PageHeaderProps): J {buttons && actionsContainer && createPortal( - {buttons}, + {buttons}, actionsContainer )} diff --git a/frontend/src/lib/lemon-ui/LemonButton/LemonButton.tsx b/frontend/src/lib/lemon-ui/LemonButton/LemonButton.tsx index 8e5e9e43588c2..44f02e8c72ff6 100644 --- a/frontend/src/lib/lemon-ui/LemonButton/LemonButton.tsx +++ b/frontend/src/lib/lemon-ui/LemonButton/LemonButton.tsx @@ -129,7 +129,7 @@ export const LemonButton: React.FunctionComponent { const [popoverVisibility, popoverPlacement] = useContext(PopoverReferenceContext) || [false, null] - const within3000PageHeader = useContext(Within3000PageHeaderContext) + const within3000PageHeader = useContext(WithinPageHeaderContext) if (!active && popoverVisibility) { active = true @@ -268,7 +268,7 @@ export const LemonButton: React.FunctionComponent(false) +export const WithinPageHeaderContext = React.createContext(false) export interface LemonButtonWithDropdownProps extends LemonButtonPropsBase { dropdown: LemonButtonDropdown