Skip to content

Commit

Permalink
feat(search preview): don't show an estimated price (#1324)
Browse files Browse the repository at this point in the history
The price shown on this screen can be misleading as it is heavily
estimated. Avoid this confusion.

## Before

<img width="422" alt="Screenshot 2024-08-20 at 09 04 17"
src="https://github.com/user-attachments/assets/faa6ec33-a8d0-4205-9aad-3e6b3427c2fc">

## After
<img width="422" alt="Screenshot 2024-08-20 at 09 04 51"
src="https://github.com/user-attachments/assets/b92e6426-0aae-4d06-9cd8-de06ce21acfe">

As requested by @lukaslevert / @jpschmetz
  • Loading branch information
tackley authored Aug 20, 2024
1 parent 4f6054b commit e092baf
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/search/preview/SummaryPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import MonetizationOnOutlinedIcon from "@mui/icons-material/MonetizationOnOutlin
import PercentIcon from "@mui/icons-material/Percent";
import ArticleIcon from "@mui/icons-material/Article";
import { SearchData } from "./data";
import { formatUsd, formatWholeNumber } from "@/user/library/format";
import { formatWholeNumber } from "@/user/library/format";

function SummaryEntry({
title,
Expand Down Expand Up @@ -92,11 +92,6 @@ export function SummaryPanel({ searchData }: Props) {
icon={<MonetizationOnOutlinedIcon sx={{ color: "text.secondary" }} />}
value={
<Box display="flex" gap={1} alignItems="center">
<Box component="span" sx={{ textDecoration: "line-through" }}>
{formatUsd(searchData.estimates.trialBudget, {
dollarsOnly: true,
})}
</Box>
<Box
color="primary.contrastText"
bgcolor="primary.main"
Expand Down

0 comments on commit e092baf

Please sign in to comment.