From c15d569419f12b1854f899d56c4d379e15a54fd5 Mon Sep 17 00:00:00 2001 From: David Newell Date: Wed, 3 Jan 2024 14:59:36 +0000 Subject: [PATCH] chore: final button cleanup --- frontend/src/lib/components/PageHeader.tsx | 4 ++-- frontend/src/lib/lemon-ui/LemonButton/LemonButton.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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