Skip to content

Commit 5fd2941

Browse files
committed
fix: simple lints
1 parent b84d7b4 commit 5fd2941

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

apps/dashboard/components/autumn/pricing-table.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ export const PricingTableContainer = ({
206206
}
207207

208208
if (products.length === 0) {
209-
return <></>;
209+
return null;
210210
}
211211

212212
const hasRecommended = products?.some((p) => p.display?.recommend_text);
@@ -266,7 +266,7 @@ export const PricingCard = ({
266266
throw new Error(`Product with id ${productId} not found`);
267267
}
268268

269-
const { name, display: productDisplay, items } = product;
269+
const { name, display: productDisplay } = product;
270270

271271
const { buttonText } = getPricingTableContent(product);
272272
const isRecommended = !!productDisplay?.recommend_text;
@@ -315,7 +315,6 @@ export const PricingCard = ({
315315
"lg:-translate-y-6 lg:shadow-lg dark:shadow-zinc-800/80 lg:h-[calc(100%+48px)] bg-secondary/40 border-primary animate-recommended-glow",
316316
className
317317
)}
318-
aria-label={isRecommended ? "Recommended plan" : undefined}
319318
>
320319
{isRecommended && (
321320
<RecommendedBadge recommended={productDisplay?.recommend_text ?? ""} />
@@ -506,7 +505,7 @@ export const AnnualSwitch = ({
506505
<span className="text-sm font-medium text-foreground" id="billing-interval-label">
507506
Choose billing interval
508507
</span>
509-
<div className="flex items-center space-x-2" aria-labelledby="billing-interval-label">
508+
<div className="flex items-center space-x-2">
510509
<span className="text-sm text-muted-foreground">Monthly</span>
511510
<Switch
512511
id="annual-billing"

0 commit comments

Comments
 (0)