Skip to content

Commit

Permalink
area/ui: Pass the viewComponent button to the QueryControls component
Browse files Browse the repository at this point in the history
  • Loading branch information
yomete committed Feb 27, 2025
1 parent 5c23962 commit 797fab5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export function QueryControls({
</div>
)}

<div className="w-full flex-1 flex flex-col gap-1" ref={queryBrowserRef}>
<div className="w-full flex-1 flex flex-col gap-1 mt-auto" ref={queryBrowserRef}>
<div className="flex items-center justify-between">
<div className="flex items-center gap-3">
<label className="text-xs">Query</label>
Expand Down Expand Up @@ -133,6 +133,7 @@ export function QueryControls({
</>
)}
</div>
{viewComponent?.createViewComponent}
</div>

{viewComponent?.disableExplorativeQuerying === true &&
Expand Down
1 change: 1 addition & 0 deletions ui/packages/shared/profile/src/ProfileSelector/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ const ProfileSelector = ({
setUserSumBySelection={setUserSumBySelection}
profileType={profileType}
profileTypesError={error}
viewComponent={viewComponent}
/>
{comparing && (
<div>
Expand Down

0 comments on commit 797fab5

Please sign in to comment.