Skip to content

Commit

Permalink
feat(web-analytics): Hide breakdown prompt from the world map display (
Browse files Browse the repository at this point in the history
…#18368)

Hide breakdown prompt from the world map display
  • Loading branch information
robbie-c committed Nov 3, 2023
1 parent 103e902 commit 948042d
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions frontend/src/scenes/trends/Trends.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,21 +72,23 @@ export function TrendInsight({ view }: Props): JSX.Element {
{renderViz()}
</div>
)}
{breakdown && loadMoreBreakdownUrl && (
<div className="my-4 flex flex-col items-center">
<div className="text-muted mb-2">
For readability, <b>not all breakdown values are displayed</b>. Click below to load them.
{display !== ChartDisplayType.WorldMap && // the world map doesn't need this cta
breakdown &&
loadMoreBreakdownUrl && (
<div className="my-4 flex flex-col items-center">
<div className="text-muted mb-2">
For readability, <b>not all breakdown values are displayed</b>. Click below to load them.
</div>
<LemonButton
onClick={loadMoreBreakdownValues}
loading={breakdownValuesLoading}
size="small"
type="secondary"
>
Load more breakdown values
</LemonButton>
</div>
<LemonButton
onClick={loadMoreBreakdownValues}
loading={breakdownValuesLoading}
size="small"
type="secondary"
>
Load more breakdown values
</LemonButton>
</div>
)}
)}
</>
)
}

0 comments on commit 948042d

Please sign in to comment.