We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d033a47 commit 4ea5598Copy full SHA for 4ea5598
src/components/TutorialsGrid.astro
@@ -10,7 +10,7 @@ import type { ComponentProps } from "astro/types";
10
import { Badge } from "@astrojs/starlight/components";
11
12
type Props = z.infer<typeof props>;
13
-type Badge = ComponentProps<typeof Badge>;
+type BadgeType = ComponentProps<typeof Badge>;
14
15
const props = z.object({
16
product: reference("products").optional(),
@@ -95,7 +95,7 @@ const difficulties = {
95
const spotlight =
96
tutorial.collection === "docs" && tutorial.data.spotlight;
97
98
- const badges: Badge[] = [
+ const badges: BadgeType[] = [
99
{
100
text: difficulty,
101
variant: difficulties[difficulty],
0 commit comments