Skip to content

Commit

Permalink
Move DATAVIEWS_CONFIG_POPOVER_PROPS declaration at the top of the file
Browse files Browse the repository at this point in the history
  • Loading branch information
ciampo committed Sep 19, 2024
1 parent d235b2e commit 6f615e9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ interface ViewTypeMenuProps {
defaultLayouts?: SupportedLayouts;
}

const DATAVIEWS_CONFIG_POPOVER_PROPS = { placement: 'bottom-end', offset: 9 };

function ViewTypeMenu( {
defaultLayouts = { list: {}, grid: {}, table: {} },
}: ViewTypeMenuProps ) {
Expand Down Expand Up @@ -572,8 +574,6 @@ function DataviewsViewConfigDropdown( {
);
}

const DATAVIEWS_CONFIG_POPOVER_PROPS = { placement: 'bottom-end', offset: 9 };

function _DataViewsViewConfig( {
density,
setDensity,
Expand Down

0 comments on commit 6f615e9

Please sign in to comment.