From 18be993d6d2f5c356fd5408ae7c6a401137c837b Mon Sep 17 00:00:00 2001 From: Kenneth Date: Sun, 26 Jan 2025 17:32:25 +0000 Subject: [PATCH] feat: impl button variant --- app/components/button.tsx | 10 ++++++++-- app/home/application-list.tsx | 16 +++++++++------- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/app/components/button.tsx b/app/components/button.tsx index 08f1d03..4482c09 100644 --- a/app/components/button.tsx +++ b/app/components/button.tsx @@ -1,17 +1,23 @@ import clsx from "clsx" +const VARIANT_CLASSES = { + small: "text-xs py-0", +} as const + function Button({ className, + variant, ...props }: React.DetailedHTMLProps< React.ButtonHTMLAttributes, HTMLButtonElement ->) { +> & { variant?: keyof typeof VARIANT_CLASSES }) { return ( @@ -126,28 +127,29 @@ const DefaultActions = memo(() => { return (
-
@@ -175,10 +177,10 @@ const AddStageActions = memo(() => { return (
- -