Skip to content

Commit

Permalink
Lower rating scale by 1
Browse files Browse the repository at this point in the history
  • Loading branch information
dcramer committed Dec 31, 2023
1 parent fbed208 commit 538a2d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/web/app/components/bottleReviews.client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { TrophyIcon } from "@heroicons/react/24/outline";
import { trpc } from "../lib/trpc";

function RatingIcon({ rating }: { rating: number }) {
if (rating > 93) return <TrophyIcon className="text-highlight h-4 w-4" />;
if (rating > 87) return <TrophyIcon className="h-4 w-4 text-gray-400" />;
if (rating > 83) return <TrophyIcon className="h-4 w-4 text-orange-400" />;
if (rating >= 93) return <TrophyIcon className="text-highlight h-4 w-4" />;
if (rating >= 87) return <TrophyIcon className="h-4 w-4 text-gray-400" />;
if (rating >= 83) return <TrophyIcon className="h-4 w-4 text-orange-400" />;
return null;
}

Expand Down

0 comments on commit 538a2d4

Please sign in to comment.