From 7a23e4e3f9c137c5a13888dd04aec725b7d39acf Mon Sep 17 00:00:00 2001 From: carwack Date: Sat, 16 Dec 2023 18:49:46 +0100 Subject: [PATCH] feat: add undefined to color prop of components --- src/components/Button.astro | 2 +- src/components/Card.astro | 2 +- src/components/Pill.astro | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Button.astro b/src/components/Button.astro index 1b4a22e..a23563f 100644 --- a/src/components/Button.astro +++ b/src/components/Button.astro @@ -2,7 +2,7 @@ interface Props { href: string; target?: '_blank' | '_self'; - color?: string; + color?: string | undefined; } import colors from '../config/colors.json'; diff --git a/src/components/Card.astro b/src/components/Card.astro index f2834d9..4cae966 100644 --- a/src/components/Card.astro +++ b/src/components/Card.astro @@ -1,6 +1,6 @@ --- interface Props { - color?: string; + color?: string | undefined; } import colors from '../config/colors.json'; diff --git a/src/components/Pill.astro b/src/components/Pill.astro index e370358..9d336af 100644 --- a/src/components/Pill.astro +++ b/src/components/Pill.astro @@ -1,6 +1,6 @@ --- interface Props { - color?: string; + color?: string | undefined; } import colors from '../config/colors.json';