From 1c50d0c8bc077b15ddfe97dbe012e929119d0a78 Mon Sep 17 00:00:00 2001 From: Josep Jaume Rey Peroy Date: Sat, 25 May 2024 19:30:36 +0200 Subject: [PATCH] Limit button --- lib/components/Actions/Button/index.tsx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/components/Actions/Button/index.tsx b/lib/components/Actions/Button/index.tsx index 6ccb24bb4..c41e7378c 100644 --- a/lib/components/Actions/Button/index.tsx +++ b/lib/components/Actions/Button/index.tsx @@ -1 +1,11 @@ -export { Button } from "@/shadcn/button" +import { Button as ShadcnButton } from "@/shadcn/button" +import { ComponentProps } from "react" + +const Button: React.FC< + Pick< + ComponentProps, + "variant" | "size" | "onClick" | "children" + > +> = ShadcnButton + +export { Button }