Skip to content

Commit

Permalink
Correctly use GradientOption type
Browse files Browse the repository at this point in the history
  • Loading branch information
andreilgeorgescu authored Oct 28, 2024
1 parent 0a2bb63 commit f2e08f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/GradientSelect.astro
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export type GradientOption = 1 | 2 | 3;
interface Props {
color: CollectionEntry<"courseCategories">["data"]["color"];
gradientFlipped?: boolean;
gradientOption?: GradientOption;
gradientOption: GradientOption;
title?: string;
showGradient?: boolean;
}
Expand Down
5 changes: 3 additions & 2 deletions src/components/Section.astro
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
---
import type { GradientOption } from "@components/GradientSelect.astro";
import GradientSelect from "@components/GradientSelect.astro";
import type { CollectionEntry } from "astro:content";
import GradientSelect from "./GradientSelect.astro";
import H2 from "./H2.astro";
interface Props {
color: CollectionEntry<"courseCategories">["data"]["color"];
gradientFlipped?: boolean;
gradientOption?: string;
gradientOption?: GradientOption;
title?: string;
}
Expand Down

0 comments on commit f2e08f2

Please sign in to comment.