From 542e3f68dd75bb0a5707eae0fe7744b05e5ec249 Mon Sep 17 00:00:00 2001 From: Thomas Churchman Date: Thu, 20 Jul 2023 16:56:51 +0200 Subject: [PATCH] Improve Button prop type --- astroplant-frontend/src/Components/Button.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/astroplant-frontend/src/Components/Button.tsx b/astroplant-frontend/src/Components/Button.tsx index c67c165..160e331 100644 --- a/astroplant-frontend/src/Components/Button.tsx +++ b/astroplant-frontend/src/Components/Button.tsx @@ -4,7 +4,7 @@ import clsx from "clsx"; import commonStyles from "~/Common.module.css"; import styles from "./Button.module.css"; -export type ButtonProps = React.HTMLProps & { +export type ButtonProps = Omit, "size"> & { variant?: "regular" | "primary" | "muted" | "positive" | "negative"; size?: "regular" | "small"; loading?: boolean;